summary refs log tree commit diff
path: root/src/timeline/EventStore.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-09-08 12:47:44 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-09-08 12:47:44 +0200
commit495a4334dff6b1eb2dd2bc2d75dfd8ef219f5950 (patch)
treeebef96b87747af04e25090de3c316929e00eb826 /src/timeline/EventStore.cpp
parentRecommend version 0.12 of QtKeychain (diff)
downloadnheko-495a4334dff6b1eb2dd2bc2d75dfd8ef219f5950.tar.xz
Fix day separator when loading older messages
fixes #632
Diffstat (limited to 'src/timeline/EventStore.cpp')
-rw-r--r--src/timeline/EventStore.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/timeline/EventStore.cpp b/src/timeline/EventStore.cpp

index 8860bc75..881fd5bb 100644 --- a/src/timeline/EventStore.cpp +++ b/src/timeline/EventStore.cpp
@@ -71,11 +71,14 @@ EventStore::EventStore(std::string room_id, QObject *) fetchMore(); else { if (this->last != std::numeric_limits<uint64_t>::max()) { + auto oldFirst = this->first; emit beginInsertRows(toExternalIdx(newFirst), toExternalIdx(this->first - 1)); this->first = newFirst; emit endInsertRows(); emit fetchedMore(); + emit dataChanged(toExternalIdx(oldFirst), + toExternalIdx(oldFirst)); } else { auto range = cache::client()->getTimelineRange(room_id_);