aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-11-23 16:40:10 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-11-23 19:23:04 +0900
commitfd524590e3888ee5b4c0e25eb2138db4763dd0ec (patch)
tree8e3bcd3b91a9eee0f916e3406fef14a1fb172312
parent52081fe91724e5f2a82c55f0e6230d8841dd859a (diff)
downloadlibquotient-fd524590e3888ee5b4c0e25eb2138db4763dd0ec.tar.gz
libquotient-fd524590e3888ee5b4c0e25eb2138db4763dd0ec.zip
Room::setLastReadEvent: save room state when updating own read marker
-rw-r--r--lib/room.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 2a1d6f66..8b81bfb2 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -401,6 +401,7 @@ void Room::Private::setLastReadEvent(User* u, QString eventId)
if (storedId != serverReadMarker)
connection->callApi<PostReadMarkersJob>(id, storedId);
emit q->readMarkerMoved(eventId, storedId);
+ connection->saveRoomState(q);
}
}