mirror of
https://github.com/maunium/stickerpicker
synced 2024-12-21 06:30:43 +00:00
add missing msgtype = m.sticker
On iOS the message is sent twice, with a duplicate event_id. It cause error on logs, in different places (synapse, mautrix, ...) It required to fix the already existing json or reimport the stickers. The "packs/scalar*" example already include this field, and it works.
This commit is contained in:
parent
ba0096275c
commit
85813b22e5
2 changed files with 2 additions and 0 deletions
|
@ -42,6 +42,7 @@ if TYPE_CHECKING:
|
|||
url: str
|
||||
info: MediaInfo
|
||||
id: str
|
||||
msgtype: str
|
||||
else:
|
||||
MediaInfo = None
|
||||
StickerInfo = None
|
||||
|
|
|
@ -74,4 +74,5 @@ def make_sticker(mxc: str, width: int, height: int, size: int,
|
|||
"mimetype": "image/png",
|
||||
},
|
||||
},
|
||||
"msgtype": "m.sticker",
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue