improve speed of state merge
This commit is contained in:
parent
a698cf8c28
commit
195d212d68
3 changed files with 14 additions and 20 deletions
|
|
@ -36,9 +36,7 @@ class RoomChatController(final ChatParams info)
|
|||
|
||||
if (!room.hasFetchedState) {
|
||||
final state = await client.getRoomState(.new(roomId: info.roomId));
|
||||
await ref
|
||||
.read(RoomsController.provider.notifier)
|
||||
.addState(info.roomId, state);
|
||||
ref.read(RoomsController.provider.notifier).addState(info.roomId, state);
|
||||
}
|
||||
|
||||
final timeline = room.timeline
|
||||
|
|
|
|||
Loading…
Reference in a new issue