From 614917ad7c1c0beec847094369a2b3bd383562ca Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Tue, 17 Oct 2017 17:12:55 +0900 Subject: Cache the actual user name, not the display name Display name is a calculated thing, name is received from the server. --- room.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/room.cpp b/room.cpp index 50faae3e..65cf2d2a 100644 --- a/room.cpp +++ b/room.cpp @@ -969,7 +969,7 @@ QJsonObject Room::Private::toJson() const { QJsonObject content; content.insert("membership", QStringLiteral("join")); - content.insert("displayname", i->displayname()); + content.insert("displayname", i->name()); content.insert("avatar_url", i->avatarUrl().toString()); QJsonObject memberEvent; -- cgit v1.2.3