fix: Don't block file decrypting

This commit is contained in:
Sorunome 2020-12-31 20:33:18 +01:00
parent 192c406cdf
commit cd9f23d6c4
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ import 'database/database.dart' show DbRoomState, DbEvent;
import 'room.dart';
import 'utils/matrix_localizations.dart';
import 'utils/receipt.dart';
import 'utils/run_in_background.dart';
import 'utils/event_localizations.dart';
abstract class RelationshipTypes {
@ -565,7 +566,7 @@ class Event extends MatrixEvent {
encryptedFile.iv = fileMap['iv'];
encryptedFile.k = fileMap['key']['k'];
encryptedFile.sha256 = fileMap['hashes']['sha256'];
uint8list = await decryptFile(encryptedFile);
uint8list = await runInBackground(decryptFile, encryptedFile);
}
return MatrixFile(bytes: uint8list, name: body);
}