Force model sync when receiving remote echo

Forcing model sync on local and remote echo make our own messages
appearing and the loading icon disappearing both feel faster.
This commit is contained in:
miruka 2019-08-31 16:18:27 -04:00
parent 69ed35d4dd
commit 11dbd1e457

View File

@ -531,6 +531,9 @@ class MatrixClient(nio.AsyncClient):
await self.set_room_last_event(room.room_id, item) await self.set_room_last_event(room.room_id, item)
if item.sender_id == self.user_id:
self.models[Event, self.user_id, room.room_id].sync_now()
# Callbacks for nio responses # Callbacks for nio responses