Fix minor things
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user