From fae6661b04945ed04221c4c4af8100d3fe2e8584 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Tue, 5 May 2020 09:07:09 +0200 Subject: [PATCH] Fix downloadanddecrypt --- lib/src/event.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/event.dart b/lib/src/event.dart index 924f64e..3157af9 100644 --- a/lib/src/event.dart +++ b/lib/src/event.dart @@ -469,7 +469,7 @@ class Event { // Is this file storeable? final infoMap = getThumbnail ? content['info']['thumbnail_info'] : content['info']; - final storeable = room.client.storeAPI.extended && + final storeable = (room.client.storeAPI?.extended ?? false) && infoMap is Map && infoMap['size'] is int && infoMap['size'] <= room.client.store.maxFileSize;