aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 2d958dca..22a0d585 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -1106,7 +1106,7 @@ QString Room::roomMembername(const QString& userId) const
return roomMembername(user(userId));
}
-void Room::updateData(SyncRoomData&& data)
+void Room::updateData(SyncRoomData&& data, bool fromCache)
{
if( d->prevBatch.isEmpty() )
d->prevBatch = data.timelinePrevBatch;
@@ -1172,7 +1172,8 @@ void Room::updateData(SyncRoomData&& data)
if (roomChanges != Change::NoChange)
{
emit changed(roomChanges);
- connection()->saveRoomState(this);
+ if (!fromCache)
+ connection()->saveRoomState(this);
}
}