Forget rooms with slide

This commit is contained in:
Christian Pauly 2020-02-16 09:22:56 +01:00
commit e13df1cbf0
2 changed files with 16 additions and 1 deletions

View file

@ -36,7 +36,7 @@ class _ArchiveState extends State<Archive> {
itemCount: archive.length,
itemBuilder: (BuildContext context, int i) => ChatListItem(
archive[i],
onForget: () => setState(() => archive = null)),
onForget: () => setState(() => archive.removeAt(i))),
);
}
},