Use the "state_key" to assign avatars

fixes #113
fixes #173
This commit is contained in:
Konstantinos Sideris 2017-12-22 16:02:08 +02:00
parent 33f534c6f8
commit de61663e42

View file

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