Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion matrix_client/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import json
import re
import requests
from time import time

try:
from urllib import quote
Expand Down Expand Up @@ -215,7 +216,7 @@ def send_message_event(self, room_id, event_type, content, txn_id=None):
txn_id(int): Optional. The transaction ID to use.
"""
if not txn_id:
txn_id = self.txn_id
txn_id = str(self.txn_id) + str(int(time() * 1000))

self.txn_id = self.txn_id + 1

Expand Down