Add user avatar after the 'encryption is enabled' message

fixes #378
remotes/origin/HEAD
Konstantinos Sideris 6 years ago
parent 00f99d9ae5
commit 5540fc0737
  1. 3
      src/timeline/TimelineView.cpp

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

Loading…
Cancel
Save