[Event] Fix download

This commit is contained in:
Christian Pauly 2020-03-31 17:47:19 +02:00
parent ae94e290f7
commit aba692ba81
1 changed files with 3 additions and 1 deletions

View File

@ -463,7 +463,9 @@ class Event {
if (uint8list == null) {
uint8list =
(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