diff --git a/src/userlistmodel.cpp b/src/userlistmodel.cpp index 7a4c8908c..46ef68784 100644 --- a/src/userlistmodel.cpp +++ b/src/userlistmodel.cpp @@ -192,7 +192,7 @@ void UserListModel::avatarChanged(Quotient::User *user, const Quotient::Room *co int UserListModel::findUserPos(Quotient::User *user) const { - return findUserPos(m_currentRoom->roomMembername(user)); + return findUserPos(m_currentRoom->safeMemberName(user->id())); } int UserListModel::findUserPos(const QString &username) const