fix read indicators
This commit is contained in:
parent
919e8d11b2
commit
e55d7c4c58
6 changed files with 36 additions and 14 deletions
|
|
@ -64,7 +64,8 @@ class RoomChatController extends AsyncNotifier<ChatController> {
|
|||
|
||||
Future<void> markRead() async {
|
||||
final controller = await future;
|
||||
await room.setReadMarker(controller.messages.last.id);
|
||||
final id = controller.messages.last.id;
|
||||
await room.setReadMarker(id, mRead: id);
|
||||
}
|
||||
|
||||
Future<void> updateMessage(Message message, Message newMessage) async =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue