Remove msgtype in stickers
This commit is contained in:
@@ -2431,6 +2431,8 @@ class Portal(DBPortal, BasePortal):
|
|||||||
"image/": MessageType.IMAGE,
|
"image/": MessageType.IMAGE,
|
||||||
}.get(info.mimetype[:6], MessageType.FILE),
|
}.get(info.mimetype[:6], MessageType.FILE),
|
||||||
)
|
)
|
||||||
|
if event_type == EventType.STICKER:
|
||||||
|
content.msgtype = None
|
||||||
if attrs.is_audio:
|
if attrs.is_audio:
|
||||||
content["org.matrix.msc1767.audio"] = {"duration": attrs.duration * 1000}
|
content["org.matrix.msc1767.audio"] = {"duration": attrs.duration * 1000}
|
||||||
if attrs.waveform:
|
if attrs.waveform:
|
||||||
|
|||||||
Reference in New Issue
Block a user