From 48d3eb28ab8f115ce999c2264303925f9c7ce2a7 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sun, 5 Sep 2021 16:29:09 +0200 Subject: Implement stanza parsing for Stanza Content Encryption --- src/base/QXmppStanza.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/base/QXmppStanza.cpp') diff --git a/src/base/QXmppStanza.cpp b/src/base/QXmppStanza.cpp index 3adcd67f..c27c80d8 100644 --- a/src/base/QXmppStanza.cpp +++ b/src/base/QXmppStanza.cpp @@ -700,10 +700,10 @@ void QXmppStanza::parse(const QDomElement &element) } } -void QXmppStanza::extensionsToXml(QXmlStreamWriter *xmlWriter) const +void QXmppStanza::extensionsToXml(QXmlStreamWriter *xmlWriter, QXmpp::SceMode sceMode) const { // XEP-0033: Extended Stanza Addressing - if (!d->extendedAddresses.isEmpty()) { + if (sceMode & QXmpp::ScePublic && !d->extendedAddresses.isEmpty()) { xmlWriter->writeStartElement("addresses"); xmlWriter->writeDefaultNamespace(ns_extended_addressing); for (const auto &address : d->extendedAddresses) -- cgit v1.2.3