From 66b06aac6ed7e6ab2f4b76747c3a6492e1e1ef97 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Fri, 5 Feb 2021 23:37:50 +0100 Subject: [PATCH] Use correct username for typing users Fix #257 --- src/neochatroom.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/neochatroom.cpp b/src/neochatroom.cpp index d921bef2e..60d6ba8e9 100644 --- a/src/neochatroom.cpp +++ b/src/neochatroom.cpp @@ -127,7 +127,12 @@ QVariantList NeoChatRoom::getUsersTyping() const users.removeAll(localUser()); QVariantList userVariants; for (User *user : users) { - userVariants.append(QVariant::fromValue(user)); + userVariants.append(QVariantMap { + {"id", user->id()}, + {"avatarMediaId", user->avatarMediaId(this)}, + {"displayName", user->displayname(this)}, + {"display", user->name()}, + }); } return userVariants; }