From 5fb74ca3d253b658fe77aaeb6a106cf6c0a9e7f0 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Thu, 22 Nov 2018 16:51:49 +0900 Subject: Save state cache per-room Closes #257. --- lib/room.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/room.cpp') diff --git a/lib/room.cpp b/lib/room.cpp index 55923ed8..2d958dca 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -1170,7 +1170,10 @@ void Room::updateData(SyncRoomData&& data) emit notificationCountChanged(this); } if (roomChanges != Change::NoChange) + { emit changed(roomChanges); + connection()->saveRoomState(this); + } } QString Room::Private::sendEvent(RoomEventPtr&& event) -- cgit v1.2.3