wip read indicators
This commit is contained in:
parent
89dd28fec6
commit
fd0b020957
3 changed files with 39 additions and 25 deletions
|
|
@ -62,6 +62,11 @@ class RoomChatController extends AsyncNotifier<ChatController> {
|
|||
);
|
||||
}
|
||||
|
||||
Future<void> markRead() async {
|
||||
final controller = await future;
|
||||
await room.setReadMarker(controller.messages.last.id);
|
||||
}
|
||||
|
||||
Future<void> updateMessage(Message message, Message newMessage) async =>
|
||||
(await future).updateMessage(message, newMessage);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue