From a68939933169c5cc80f820addf5e047d51460031 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 23 Nov 2022 21:31:29 +0300 Subject: fixes #3254 (Jabber: cannot clear topic) --- protocols/JabberG/src/jabber_groupchat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/JabberG/src/jabber_groupchat.cpp b/protocols/JabberG/src/jabber_groupchat.cpp index cc9f07ce96..7fd448657f 100644 --- a/protocols/JabberG/src/jabber_groupchat.cpp +++ b/protocols/JabberG/src/jabber_groupchat.cpp @@ -1015,8 +1015,8 @@ void CJabberProto::GroupchatProcessMessage(const TiXmlElement *node) if ((n = XmlFirstChild(node, "subject")) != nullptr) { msgText = n->GetText(); - if (msgText == nullptr || msgText[0] == '\0') - return; + if (msgText == nullptr) + msgText = ""; gce.iType = GC_EVENT_TOPIC; -- cgit v1.2.3