diff --git a/src/TimelineView.cc b/src/TimelineView.cc index 354a725c6848fd870e714744fab35700dc8240cf..e5cbbbf68aa175857dbb14827eeca5d7bbaedf69 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();