mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 03:18:49 +03:00
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
This commit is contained in:
parent
13cb0521fa
commit
7e03ca4359
1 changed files with 4 additions and 0 deletions
|
@ -179,6 +179,10 @@ TimelineView::addBackwardsEvents(const QString &room_id, const RoomMessages &msg
|
||||||
isTimelineFinished = false;
|
isTimelineFinished = false;
|
||||||
QList<TimelineItem *> items;
|
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
|
// Parse in reverse order to determine where we should not show sender's
|
||||||
// name.
|
// name.
|
||||||
auto ii = msgs.chunk().size();
|
auto ii = msgs.chunk().size();
|
||||||
|
|
Loading…
Reference in a new issue