diff --git a/lib/presentation/extensions/send_file_extension.dart b/lib/presentation/extensions/send_file_extension.dart index 19138c4ac0..98d6870856 100644 --- a/lib/presentation/extensions/send_file_extension.dart +++ b/lib/presentation/extensions/send_file_extension.dart @@ -188,6 +188,7 @@ extension SendFileExtension on Room { 'thumbnail_url': thumbnailUploadResp.toString(), if (thumbnail != null && encryptedThumbnail != null) 'thumbnail_file': encryptedThumbnail.toJson(), + if (thumbnail != null) 'thumbnail_info': thumbnail.metadata, }..addAll(thumbnail?.metadata ?? {}), if (extraContent != null) ...extraContent, }; diff --git a/lib/presentation/extensions/send_file_web_extension.dart b/lib/presentation/extensions/send_file_web_extension.dart index 5e0f88f2b9..6208c48231 100644 --- a/lib/presentation/extensions/send_file_web_extension.dart +++ b/lib/presentation/extensions/send_file_web_extension.dart @@ -163,8 +163,9 @@ extension SendFileWebExtension on Room { 'kty': 'oct' }, 'iv': encryptedThumbnail.iv, - 'hashes': {'sha256': encryptedThumbnail.sha256} + 'hashes': {'sha256': encryptedThumbnail.sha256}, }, + if (thumbnail != null) 'thumbnail_info': thumbnail.info, }..addAll(thumbnail?.info ?? {}), if (extraContent != null) ...extraContent, };