feat: Display progress on redact events and clear archive dialogs

This commit is contained in:
Christian Kußowski 2025-09-19 10:50:38 +02:00
commit 69bbfa5389
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
3 changed files with 28 additions and 11 deletions

View file

@ -52,8 +52,10 @@ class ArchiveController extends State<Archive> {
}
await showFutureLoadingDialog(
context: context,
future: () async {
futureWithProgress: (onProgress) async {
final count = archive.length;
while (archive.isNotEmpty) {
onProgress(1 - (archive.length / count));
Logs().v('Forget room ${archive.last.getLocalizedDisplayname()}');
await archive.last.forget();
archive.removeLast();