Skip to content
This repository has been archived by the owner on Oct 17, 2019. It is now read-only.

Commit

Permalink
Add user avatar after the 'encryption is enabled' message
Browse files Browse the repository at this point in the history
fixes #378
  • Loading branch information
mujx committed Jul 19, 2018
1 parent 00f99d9 commit 5540fc0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/timeline/TimelineView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ TimelineView::parseMessageEvent(const mtx::events::collections::TimelineEvents &
item->saveDatetime(QDateTime::fromMSecsSinceEpoch(msg.origin_server_ts));
eventIds_[event_id] = item;

// Force the next message to have avatar by not providing the current username.
saveMessageInfo("", msg.origin_server_ts, direction);

return item;
} else if (mpark::holds_alternative<RoomEvent<msg::Audio>>(event)) {
auto audio = mpark::get<RoomEvent<msg::Audio>>(event);
Expand Down

0 comments on commit 5540fc0

Please sign in to comment.