aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-11-22 16:51:49 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-11-22 16:53:59 +0900
commit5fb74ca3d253b658fe77aaeb6a106cf6c0a9e7f0 (patch)
tree203d3533550e6c665220578f7922317833efb22c /lib/room.cpp
parent0c3a45356a803baa0eb5e553262a85cac897ac4f (diff)
downloadlibquotient-5fb74ca3d253b658fe77aaeb6a106cf6c0a9e7f0.tar.gz
libquotient-5fb74ca3d253b658fe77aaeb6a106cf6c0a9e7f0.zip
Save state cache per-room
Closes #257.
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp3
1 files changed, 3 insertions, 0 deletions
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)