forked from Henry-Hiles/nexus
fix some stuff (maybe?)
This commit is contained in:
parent
a4d60e6c83
commit
3e82faeb86
10 changed files with 58 additions and 36 deletions
|
|
@ -82,8 +82,10 @@ class RoomChatController extends AsyncNotifier<ChatController> {
|
|||
}
|
||||
|
||||
Future<void> markRead() async {
|
||||
if (!room.hasNewMessages) return;
|
||||
final controller = await future;
|
||||
final id = controller.messages.last.id;
|
||||
|
||||
await room.setReadMarker(id, mRead: id);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue