Add hack for Riot iOS being dumb about thumbnails
This commit is contained in:
@@ -152,6 +152,9 @@ class PortalTelegram(BasePortal, ABC):
|
|||||||
height=file.thumbnail.height or thumb_size.h,
|
height=file.thumbnail.height or thumb_size.h,
|
||||||
width=file.thumbnail.width or thumb_size.w,
|
width=file.thumbnail.width or thumb_size.w,
|
||||||
size=file.thumbnail.size)
|
size=file.thumbnail.size)
|
||||||
|
else:
|
||||||
|
info.thumbnail_url = file.mxc
|
||||||
|
info.thumbnail_info = ImageInfo.deserialize(info.serialize())
|
||||||
|
|
||||||
return info, name
|
return info, name
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user