fix: e2ee files

This commit is contained in:
Sorunome 2021-04-23 15:58:12 +02:00
parent 81c6906eba
commit ccd7964cfb
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 4 additions and 4 deletions

View File

@ -82,8 +82,8 @@ class _ImageBubbleState extends State<ImageBubble> {
void initState() { void initState() {
thumbnailUrl = widget.event thumbnailUrl = widget.event
.getAttachmentUrl(getThumbnail: true, animated: true) .getAttachmentUrl(getThumbnail: true, animated: true)
.toString(); ?.toString();
attachmentUrl = widget.event.getAttachmentUrl(animated: true).toString(); attachmentUrl = widget.event.getAttachmentUrl(animated: true)?.toString();
if (thumbnailUrl == null) { if (thumbnailUrl == null) {
_requestFile(getThumbnail: true); _requestFile(getThumbnail: true);
} }
@ -201,10 +201,10 @@ class _ImageBubbleState extends State<ImageBubble> {
getThumbnail: true, getThumbnail: true,
useThumbnailMxcUrl: true, useThumbnailMxcUrl: true,
animated: true) animated: true)
.toString(); ?.toString();
attachmentUrl = widget.event attachmentUrl = widget.event
.getAttachmentUrl(useThumbnailMxcUrl: true, animated: true) .getAttachmentUrl(useThumbnailMxcUrl: true, animated: true)
.toString(); ?.toString();
}); });
}); });
} }