Skip to content

Commit

Permalink
QXmppMixInvitation: Write only non-empty XML text elements
Browse files Browse the repository at this point in the history
  • Loading branch information
melvo committed Oct 24, 2023
1 parent 9ef1bdb commit 4e6202f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/base/QXmppMixInvitation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 4e6202f

Please sign in to comment.