Skip to content

Commit 214399c

Browse files
committed
Update transaction ID format to match mautrix-go
1 parent 6f29e18 commit 214399c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mautrix/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ async def request(
428428
def get_txn_id(self) -> str:
429429
"""Get a new unique transaction ID."""
430430
self.txn_id += 1
431-
return f"mautrix-python_R{self.txn_id}@T{int(time.time() * 1000)}"
431+
return f"mautrix-python_{time.time_ns()}_{self.txn_id}"
432432

433433
def get_download_url(
434434
self,

0 commit comments

Comments
 (0)