MUC: Don't send empty body when setting room topic
Thanks to Minoru for the report.
--- a/mcabber/mcabber/xmpp.c Tue Oct 22 19:59:21 2019 +0200
+++ b/mcabber/mcabber/xmpp.c Sat Aug 28 22:53:44 2021 +0200
@@ -400,8 +400,10 @@
#endif // HAVE_GPGME || defined XEP0085
x = lm_message_new_with_sub_type(fjid, LM_MESSAGE_TYPE_MESSAGE, subtype);
- lm_message_node_add_child(x->node, "body",
- enc ? "This message is PGP-encrypted." : text);
+ if (text) {
+ lm_message_node_add_child(x->node, "body",
+ enc ? "This message is PGP-encrypted." : text);
+ }
if (subject)
lm_message_node_add_child(x->node, "subject", subject);