Remove msgtype in stickers

This commit is contained in:
Tulir Asokan
2022-02-23 14:36:53 +02:00
parent 9ea495324d
commit 24162e14ac
+2
View File
@@ -2431,6 +2431,8 @@ class Portal(DBPortal, BasePortal):
"image/": MessageType.IMAGE,
}.get(info.mimetype[:6], MessageType.FILE),
)
if event_type == EventType.STICKER:
content.msgtype = None
if attrs.is_audio:
content["org.matrix.msc1767.audio"] = {"duration": attrs.duration * 1000}
if attrs.waveform: