fix: incorrect filename when caption is used in body of event
This commit is contained in:
parent
84c12ff143
commit
27c8e43dca
|
|
@ -792,9 +792,11 @@ class Event extends MatrixEvent {
|
|||
throw ('Unable to decrypt file');
|
||||
}
|
||||
}
|
||||
|
||||
final filename = content.tryGet<String>('filename') ?? body;
|
||||
return MatrixFile(
|
||||
bytes: uint8list,
|
||||
name: body,
|
||||
name: filename,
|
||||
mimeType: attachmentMimetype,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue