fix: format

This commit is contained in:
Sorunome 2021-08-27 16:51:42 +02:00
parent 99ff2098fb
commit bfb55b4525
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 2 additions and 1 deletions

View File

@ -88,7 +88,8 @@ extension LocalizedBody on Event {
Future<MatrixFile> downloadAndDecryptAttachmentCached(
{bool getThumbnail = false}) async {
final mxcUrl = attachmentOrThumbnailMxcUrl(getThumbnail: getThumbnail);
_downloadAndDecryptFutures[mxcUrl.toString()] ??= downloadAndDecryptAttachment(
_downloadAndDecryptFutures[mxcUrl.toString()] ??=
downloadAndDecryptAttachment(
getThumbnail: getThumbnail,
downloadCallback: (Uri url) async {
final file = await DefaultCacheManager().getSingleFile(url.toString());