|
|
|
@ -52,10 +52,8 @@ class ChatListItem extends StatelessWidget {
|
|
|
|
child: Text(I18n.of(context).delete.toUpperCase(),
|
|
|
|
child: Text(I18n.of(context).delete.toUpperCase(),
|
|
|
|
style: TextStyle(color: Colors.red)),
|
|
|
|
style: TextStyle(color: Colors.red)),
|
|
|
|
onPressed: () async {
|
|
|
|
onPressed: () async {
|
|
|
|
await Matrix.of(context)
|
|
|
|
await archiveAction(context);
|
|
|
|
.tryRequestWithLoadingDialog(room.forget());
|
|
|
|
|
|
|
|
await Navigator.of(context).pop();
|
|
|
|
await Navigator.of(context).pop();
|
|
|
|
if (this.onForget != null) this.onForget();
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
FlatButton(
|
|
|
|
FlatButton(
|
|
|
|
|