summary refs log tree commit diff
path: root/src/TimelineView.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/TimelineView.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/TimelineView.cc')
-rw-r--r--src/TimelineView.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/TimelineView.cc b/src/TimelineView.cc

index ee98fe72..354a725c 100644 --- a/src/TimelineView.cc +++ b/src/TimelineView.cc
@@ -577,7 +577,7 @@ TimelineView::isPendingMessage(const QString &eventid, void TimelineView::removePendingMessage(const QString &eventid, const QString &body) { - for (auto it = pending_msgs_.begin(); it != pending_msgs_.end(); it++) { + for (auto it = pending_msgs_.begin(); it != pending_msgs_.end(); ++it) { int index = std::distance(pending_msgs_.begin(), it); if (it->event_id == eventid || it->body == body) {