From de61663e422feb3d5614bbc1de304f6fb0c7d533 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Fri, 22 Dec 2017 16:02:08 +0200 Subject: [PATCH] Use the "state_key" to assign avatars fixes #113 fixes #173 --- src/ChatPage.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ChatPage.cc b/src/ChatPage.cc index 8161d62c..8abd651b 100644 --- a/src/ChatPage.cc +++ b/src/ChatPage.cc @@ -693,7 +693,7 @@ ChatPage::updateTypingUsers(const QString &roomid, const std::vector &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())