diff options
| author | Linus Jahn <lnj@kaidan.im> | 2021-09-05 16:29:09 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2021-09-28 17:08:08 +0200 |
| commit | 48d3eb28ab8f115ce999c2264303925f9c7ce2a7 (patch) | |
| tree | 3602342cbefb4c34bcbb61e08d17960e5ec69d3f /src/base/QXmppStanza.cpp | |
| parent | 22be2464b5d253e840d4731fbc86e9633a394e8c (diff) | |
| download | qxmpp-48d3eb28ab8f115ce999c2264303925f9c7ce2a7.tar.gz | |
Implement stanza parsing for Stanza Content Encryption
Diffstat (limited to 'src/base/QXmppStanza.cpp')
| -rw-r--r-- | src/base/QXmppStanza.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
