fix: Archive does not update its state
This commit is contained in:
parent
9d29f9dcd2
commit
b42a565a9a
5 changed files with 32 additions and 34 deletions
|
|
@ -23,6 +23,7 @@ class ChatListItem extends StatelessWidget {
|
|||
final bool selected;
|
||||
final void Function()? onTap;
|
||||
final void Function()? onLongPress;
|
||||
final void Function()? onForget;
|
||||
|
||||
const ChatListItem(
|
||||
this.room, {
|
||||
|
|
@ -30,6 +31,7 @@ class ChatListItem extends StatelessWidget {
|
|||
this.selected = false,
|
||||
this.onTap,
|
||||
this.onLongPress,
|
||||
this.onForget,
|
||||
super.key,
|
||||
});
|
||||
|
||||
|
|
@ -362,6 +364,12 @@ class ChatListItem extends StatelessWidget {
|
|||
],
|
||||
),
|
||||
onTap: () => clickAction(context),
|
||||
trailing: onForget == null
|
||||
? null
|
||||
: IconButton(
|
||||
icon: const Icon(Icons.delete_outlined),
|
||||
onPressed: onForget,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue