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
+2 -2
View File
@@ -183,8 +183,8 @@ bridge:
args:
width: 256
height: 256
background: "020202" # only for gif
fps: 30 # only for webm
background: "020202" # only for gif
fps: 30 # only for webm
# Whether to bridge Telegram bot messages as m.notices or m.texts.
bot_messages_as_notices: true
+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),