From 24162e14acd05ea5dc6828890458def72c6eaefc Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 23 Feb 2022 14:36:53 +0200 Subject: [PATCH] Remove msgtype in stickers --- mautrix_telegram/portal.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mautrix_telegram/portal.py b/mautrix_telegram/portal.py index 70935373..7e321ffb 100644 --- a/mautrix_telegram/portal.py +++ b/mautrix_telegram/portal.py @@ -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: