From 4e6202f8c02badaf8922b83b31c2b9ad4eff9d36 Mon Sep 17 00:00:00 2001 From: Melvin Keskin Date: Tue, 17 Oct 2023 20:53:56 +0200 Subject: [PATCH] QXmppMixInvitation: Write only non-empty XML text elements --- src/base/QXmppMixInvitation.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/base/QXmppMixInvitation.cpp b/src/base/QXmppMixInvitation.cpp index b1a39179a..cc4109f12 100644 --- a/src/base/QXmppMixInvitation.cpp +++ b/src/base/QXmppMixInvitation.cpp @@ -133,10 +133,10 @@ void QXmppMixInvitation::toXml(QXmlStreamWriter *writer) const writer->writeStartElement(QStringLiteral("invitation")); writer->writeDefaultNamespace(ns_mix_misc); - helperToXmlAddTextElement(writer, QStringLiteral("inviter"), d->inviterJid); - helperToXmlAddTextElement(writer, QStringLiteral("invitee"), d->inviteeJid); - helperToXmlAddTextElement(writer, QStringLiteral("channel"), d->channelJid); - helperToXmlAddTextElement(writer, QStringLiteral("token"), d->token); + addXmlTextElement(writer, QStringLiteral("inviter"), d->inviterJid); + addXmlTextElement(writer, QStringLiteral("invitee"), d->inviteeJid); + addXmlTextElement(writer, QStringLiteral("channel"), d->channelJid); + addXmlTextElement(writer, QStringLiteral("token"), d->token); writer->writeEndElement(); }