Merge branch 'event-fix-download' into 'master'

[Event] Fix download

See merge request famedly/famedlysdk!255
This commit is contained in:
Christian Pauly 2020-03-31 15:51:30 +00:00
commit 949146cbf9

View file

@ -463,7 +463,9 @@ class Event {
if (uint8list == null) { if (uint8list == null) {
uint8list = uint8list =
(await http.get(mxContent.getDownloadLink(room.client))).bodyBytes; (await http.get(mxContent.getDownloadLink(room.client))).bodyBytes;
await room.client.store.storeFile(uint8list, mxContent.mxc); if (storeable) {
await room.client.store.storeFile(uint8list, mxContent.mxc);
}
} }
// Decrypt the file // Decrypt the file