summary refs log tree commit diff
path: root/src/RoomState.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-10-28 20:46:34 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-10-28 20:46:34 +0300
commitc18a49915b4b98ac7f837a1feca3e243ac44940d (patch)
tree98fda5a56640689bebf7b6294722f4151731a156 /src/RoomState.cc
parentClean up headers (diff)
downloadnheko-c18a49915b4b98ac7f837a1feca3e243ac44940d.tar.xz
Save the changes between syncs in cache
- Fixes high cpu issues caused by the serialization of the whole
  in-memory state.
- Display name changes are now visible in the timeline.
Diffstat (limited to 'src/RoomState.cc')
-rw-r--r--src/RoomState.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/RoomState.cc b/src/RoomState.cc

index 8db9b2bc..2b8bcdba 100644 --- a/src/RoomState.cc +++ b/src/RoomState.cc
@@ -22,6 +22,9 @@ namespace events = matrix::events; +RoomState::RoomState() {} +RoomState::RoomState(const QJsonArray &events) { updateFromEvents(events); } + void RoomState::resolveName() {