Merge branch 'krille/fix-download' into 'master'

Fix downloadanddecrypt

See merge request famedly/famedlysdk!277
This commit is contained in:
Christian Pauly 2020-05-05 07:11:49 +00:00
commit c2bc27abfd

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;