From ccd7964cfbaa41412985b2b61b5dba1b5a098cb8 Mon Sep 17 00:00:00 2001 From: Sorunome Date: Fri, 23 Apr 2021 15:58:12 +0200 Subject: [PATCH] fix: e2ee files --- lib/views/widgets/image_bubble.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/views/widgets/image_bubble.dart b/lib/views/widgets/image_bubble.dart index 1bd06204..3bbfaad3 100644 --- a/lib/views/widgets/image_bubble.dart +++ b/lib/views/widgets/image_bubble.dart @@ -82,8 +82,8 @@ class _ImageBubbleState extends State { void initState() { thumbnailUrl = widget.event .getAttachmentUrl(getThumbnail: true, animated: true) - .toString(); - attachmentUrl = widget.event.getAttachmentUrl(animated: true).toString(); + ?.toString(); + attachmentUrl = widget.event.getAttachmentUrl(animated: true)?.toString(); if (thumbnailUrl == null) { _requestFile(getThumbnail: true); } @@ -201,10 +201,10 @@ class _ImageBubbleState extends State { getThumbnail: true, useThumbnailMxcUrl: true, animated: true) - .toString(); + ?.toString(); attachmentUrl = widget.event .getAttachmentUrl(useThumbnailMxcUrl: true, animated: true) - .toString(); + ?.toString(); }); }); }