Fix downloadanddecrypt

This commit is contained in:
Christian Pauly 2020-05-05 09:07:09 +02:00
parent cdadbe88a8
commit fae6661b04
1 changed files with 1 additions and 1 deletions

View File

@ -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<String, dynamic> &&
infoMap['size'] is int &&
infoMap['size'] <= room.client.store.maxFileSize;