parent
49f2dc55b8
commit
8da46dffe4
5 changed files with 75 additions and 16 deletions
|
|
@ -97,6 +97,25 @@ class RoomChatController(final ChatParams info)
|
|||
),
|
||||
);
|
||||
|
||||
void hideClientSticky(int eventRowId) => ref
|
||||
.read(RoomsController.provider.notifier)
|
||||
.update(
|
||||
.new({
|
||||
info.roomId: Room(
|
||||
resetClientSticky: true,
|
||||
clientSticky:
|
||||
ref
|
||||
.read(
|
||||
RoomsController.provider.select(
|
||||
(rooms) => rooms[info.roomId]?.clientSticky,
|
||||
),
|
||||
)
|
||||
?.remove(eventRowId) ??
|
||||
.new(),
|
||||
),
|
||||
}),
|
||||
);
|
||||
|
||||
Future<void> paginate(Direction direction) async {
|
||||
if (state.isLoading) return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue