From 740a9a2a64e8934aae872926f1088cefb0fd6693 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sun, 16 Feb 2020 09:24:50 +0100 Subject: [PATCH] Clean up --- lib/components/list_items/chat_list_item.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/components/list_items/chat_list_item.dart b/lib/components/list_items/chat_list_item.dart index 6112ab4..15443db 100644 --- a/lib/components/list_items/chat_list_item.dart +++ b/lib/components/list_items/chat_list_item.dart @@ -52,10 +52,8 @@ class ChatListItem extends StatelessWidget { child: Text(I18n.of(context).delete.toUpperCase(), style: TextStyle(color: Colors.red)), onPressed: () async { - await Matrix.of(context) - .tryRequestWithLoadingDialog(room.forget()); + await archiveAction(context); await Navigator.of(context).pop(); - if (this.onForget != null) this.onForget(); }, ), FlatButton(