mirror of
https://github.com/caronc/apprise.git
synced 2025-03-13 14:28:23 +01:00
Matrix: Use UUID for transaction (demo).
This commit is contained in:
parent
77cc81a9c0
commit
797452dd4e
@ -32,6 +32,7 @@
|
|||||||
#
|
#
|
||||||
import re
|
import re
|
||||||
import requests
|
import requests
|
||||||
|
import uuid
|
||||||
from markdown import markdown
|
from markdown import markdown
|
||||||
from json import dumps
|
from json import dumps
|
||||||
from json import loads
|
from json import loads
|
||||||
@ -668,9 +669,10 @@ class NotifyMatrix(NotifyBase):
|
|||||||
|
|
||||||
# Build our path
|
# Build our path
|
||||||
if self.version == MatrixVersion.V3:
|
if self.version == MatrixVersion.V3:
|
||||||
|
|
||||||
path = '/rooms/{}/send/m.room.message/{}'.format(
|
path = '/rooms/{}/send/m.room.message/{}'.format(
|
||||||
NotifyMatrix.quote(room_id),
|
NotifyMatrix.quote(room_id),
|
||||||
self.transaction_id,
|
uuid.uuid4(),
|
||||||
)
|
)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user