diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-11-03 14:25:01 +0200 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-11-03 14:25:01 +0200 |
commit | 7e03ca43595d1e9f8fa1743d4072d719a2cdfffa (patch) | |
tree | 5e0c7cce6aaab3ab5abd04428d24f03252f94449 | |
parent | 13cb0521fa4fd692f66a89c83ef17b7e3ea339bb (diff) |
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
-rw-r--r-- | src/TimelineView.cc | 4 |
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(); |