Fix bridging documents without thumbnails
This commit is contained in:
@@ -870,7 +870,7 @@ class Portal:
|
|||||||
"size": document.size,
|
"size": document.size,
|
||||||
"mimetype": mime_type,
|
"mimetype": mime_type,
|
||||||
}
|
}
|
||||||
if document.thumb:
|
if document.thumb and not isinstance(document.thumb, PhotoSizeEmpty):
|
||||||
thumbnail = await util.transfer_file_to_matrix(self.db, source.client, intent,
|
thumbnail = await util.transfer_file_to_matrix(self.db, source.client, intent,
|
||||||
document.thumb.location)
|
document.thumb.location)
|
||||||
info["thumbnail_info"] = {
|
info["thumbnail_info"] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user