Rename Riot to Element in comments about how bad they are
This commit is contained in:
@@ -198,7 +198,7 @@ bridge:
|
||||
# to resolve redirects in invite links.
|
||||
invite_link_resolve: false
|
||||
# Use inline images instead of a separate message for the caption.
|
||||
# N.B. Inline images are not supported on all clients (e.g. Riot iOS).
|
||||
# N.B. Inline images are not supported on all clients (e.g. Element iOS/Android).
|
||||
inline_images: false
|
||||
# Maximum size of image in megabytes before sending to Telegram as a document.
|
||||
image_as_file_size: 10
|
||||
|
||||
@@ -185,7 +185,7 @@ class PortalTelegram(BasePortal, ABC):
|
||||
width=file.thumbnail.width or thumb_size.w,
|
||||
size=file.thumbnail.size)
|
||||
else:
|
||||
# This is a hack for bad clients like Riot iOS that require a thumbnail
|
||||
# This is a hack for bad clients like Element iOS that require a thumbnail
|
||||
if file.decryption_info:
|
||||
info.thumbnail_file = file.decryption_info
|
||||
else:
|
||||
@@ -226,7 +226,7 @@ class PortalTelegram(BasePortal, ABC):
|
||||
await intent.set_typing(self.mxid, is_typing=False)
|
||||
|
||||
event_type = EventType.ROOM_MESSAGE
|
||||
# Riot only supports images as stickers, so send animated webm stickers as m.video
|
||||
# Elements only support 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(
|
||||
|
||||
Reference in New Issue
Block a user