feat: Better image sending experience
This commit is contained in:
parent
63563a245d
commit
cc0eba83fd
6 changed files with 17 additions and 18 deletions
|
|
@ -76,7 +76,8 @@ extension LocalizedBody on Event {
|
|||
Future<MatrixFile?> downloadAndDecryptAttachmentCached(
|
||||
{bool getThumbnail = false}) async {
|
||||
final mxcUrl =
|
||||
attachmentOrThumbnailMxcUrl(getThumbnail: getThumbnail).toString();
|
||||
attachmentOrThumbnailMxcUrl(getThumbnail: getThumbnail)?.toString() ??
|
||||
eventId;
|
||||
_downloadAndDecryptFutures[mxcUrl] ??= downloadAndDecryptAttachment(
|
||||
getThumbnail: getThumbnail,
|
||||
downloadCallback: (Uri url) async {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue