Add user avatar after the 'encryption is enabled' message

fixes #378
This commit is contained in:
Konstantinos Sideris 2018-07-19 18:46:36 +03:00
parent 00f99d9ae5
commit 5540fc0737
1 changed files with 3 additions and 0 deletions

View File

@ -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);