feat: Display progress on redact events and clear archive dialogs
This commit is contained in:
parent
e122bdeb98
commit
69bbfa5389
3 changed files with 28 additions and 11 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue