Merge branch 'event-fix-download' into 'master'
[Event] Fix download See merge request famedly/famedlysdk!255
This commit is contained in:
commit
949146cbf9
|
@ -463,8 +463,10 @@ class Event {
|
|||
if (uint8list == null) {
|
||||
uint8list =
|
||||
(await http.get(mxContent.getDownloadLink(room.client))).bodyBytes;
|
||||
if (storeable) {
|
||||
await room.client.store.storeFile(uint8list, mxContent.mxc);
|
||||
}
|
||||
}
|
||||
|
||||
// Decrypt the file
|
||||
if (isEncrypted) {
|
||||
|
|
Loading…
Reference in a new issue