Skip to content

Commit

Permalink
Make txn_id into a string to make it more unique
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Oct 12, 2016
1 parent 5de3ab7 commit c2ce22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matrix_client/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,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 + int(time() * 1000)
txn_id = str(self.txn_id) + str(int(time() * 1000))

self.txn_id = self.txn_id + 1

Expand Down

0 comments on commit c2ce22f

Please sign in to comment.