Merge pull request #2101 from famedly/krille/fix-no-user-feedback-on-get-config

fix: no user feedback if client.getConfig() takes some time
This commit is contained in:
Malin 2025-06-02 10:05:29 +02:00 committed by GitHub
commit dca5177357
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -771,6 +771,7 @@ class Room {
},
),
);
await _handleFakeSync(syncUpdate);
MatrixFile uploadFile = file; // ignore: omit_local_variable_types
// computing the thumbnail in case we can
@ -779,7 +780,6 @@ class Room {
syncUpdate.rooms!.join!.values.first.timeline!.events!.first
.unsigned![fileSendingStatusKey] =
FileSendingStatus.generatingThumbnail.name;
await _handleFakeSync(syncUpdate);
thumbnail ??= await file.generateThumbnail(
nativeImplementations: client.nativeImplementations,
customImageResizer: client.customImageResizer,