Fix minor things

This commit is contained in:
Tulir Asokan
2019-10-27 15:37:42 +02:00
parent 3841528f5a
commit 0192fb8308
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -193,7 +193,10 @@ class PortalTelegram(BasePortal, ABC):
await intent.set_typing(self.mxid, is_typing=False)
event_type = EventType.STICKER if attrs.is_sticker else EventType.ROOM_MESSAGE
event_type = EventType.ROOM_MESSAGE
# Riot only supports images as stickers, so send animated webm stickers as m.video
if attrs.is_sticker and file.mime_type.startswith("image/"):
event_type = EventType.STICKER
content = MediaMessageEventContent(
body=name or "unnamed file", info=info, url=file.mxc, relates_to=relates_to,
external_url=self._get_external_url(evt),