From 11dbd1e457d3c0c2d42a907289dc7494d6c249d8 Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 31 Aug 2019 16:18:27 -0400 Subject: [PATCH] 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. --- src/python/matrix_client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/python/matrix_client.py b/src/python/matrix_client.py index 2093dc3f..1f87087c 100644 --- a/src/python/matrix_client.py +++ b/src/python/matrix_client.py @@ -531,6 +531,9 @@ class MatrixClient(nio.AsyncClient): 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