Skip to content
Snippets Groups Projects
Commit de61663e authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Use the "state_key" to assign avatars

fixes #113
fixes #173
parent 33f534c6
No related branches found
No related tags found
No related merge requests found
......@@ -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())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment