summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-11-03 14:25:01 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-11-03 14:25:01 +0200
commit7e03ca43595d1e9f8fa1743d4072d719a2cdfffa (patch)
tree5e0c7cce6aaab3ab5abd04428d24f03252f94449 /src
parentImprovements to the quick switcher (#109) (diff)
downloadnheko-7e03ca43595d1e9f8fa1743d4072d719a2cdfffa.tar.xz
Reset the sender's name when paginating backwards
The first message of the timeline would have an avatar and
the rest of the messages would use the previous to be configured
(whether or not should have an avatar).

fixes #63
Diffstat (limited to 'src')
-rw-r--r--src/TimelineView.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/TimelineView.cc b/src/TimelineView.cc

index 354a725c..e5cbbbf6 100644 --- a/src/TimelineView.cc +++ b/src/TimelineView.cc
@@ -179,6 +179,10 @@ TimelineView::addBackwardsEvents(const QString &room_id, const RoomMessages &msg isTimelineFinished = false; QList<TimelineItem *> items; + // Reset the sender of the first message in the timeline + // cause we're about to insert a new one. + firstSender_.clear(); + // Parse in reverse order to determine where we should not show sender's // name. auto ii = msgs.chunk().size();