From 97f8ad88fb4569a07364c92cebfa025458e3fddd Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Tue, 12 Oct 2021 00:28:29 +0200 Subject: [PATCH] Fix statedelegate text for displayname changes --- src/neochatroom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/neochatroom.cpp b/src/neochatroom.cpp index b4f843610..68c66cf78 100644 --- a/src/neochatroom.cpp +++ b/src/neochatroom.cpp @@ -399,7 +399,7 @@ QString NeoChatRoom::eventToString(const RoomEvent &evt, Qt::TextFormat format, } // Part 2: profile changes of joined members if (e.isRename() && NeoChatConfig::self()->showRename()) { - if (!e.displayName().isEmpty()) { + if (e.displayName().isEmpty()) { text = i18nc("their refers to a singular user", "cleared their display name"); } else { text = i18nc("their refers to a singular user", "changed their display name to %1", e.displayName().toHtmlEscaped());