Use the "state_key" to assign avatars

fixes #113
fixes #173
pull/1/head
Konstantinos Sideris 7 years ago
parent 33f534c6f8
commit de61663e42
  1. 2
      src/ChatPage.cc

@ -693,7 +693,7 @@ ChatPage::updateTypingUsers(const QString &roomid, const std::vector<std::string
void
ChatPage::updateUserAvatarUrl(const mtx::events::StateEvent<mtx::events::state::Member> &membership)
{
auto uid = QString::fromStdString(membership.sender);
auto uid = QString::fromStdString(membership.state_key);
auto url = QString::fromStdString(membership.content.avatar_url);
if (!url.isEmpty())

Loading…
Cancel
Save