Fix downloadanddecrypt

This commit is contained in:
Christian Pauly 2020-05-05 09:07:09 +02:00
parent cdadbe88a8
commit fae6661b04

View file

@ -469,7 +469,7 @@ class Event {
// Is this file storeable? // Is this file storeable?
final infoMap = final infoMap =
getThumbnail ? content['info']['thumbnail_info'] : content['info']; 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 is Map<String, dynamic> &&
infoMap['size'] is int && infoMap['size'] is int &&
infoMap['size'] <= room.client.store.maxFileSize; infoMap['size'] <= room.client.store.maxFileSize;