Browse Source

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.
pull/32/head
celogeek 3 years ago
parent
commit
85813b22e5
No known key found for this signature in database GPG Key ID: E6B7BDCFC446233A
  1. 1
      sticker/lib/matrix.py
  2. 1
      sticker/lib/util.py

1
sticker/lib/matrix.py

@ -42,6 +42,7 @@ if TYPE_CHECKING:
url: str
info: MediaInfo
id: str
msgtype: str
else:
MediaInfo = None
StickerInfo = None

1
sticker/lib/util.py

@ -74,4 +74,5 @@ def make_sticker(mxc: str, width: int, height: int, size: int,
"mimetype": "image/png",
},
},
"msgtype": "m.sticker",
}
Loading…
Cancel
Save