aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppStanza.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/QXmppStanza.cpp')
-rw-r--r--src/base/QXmppStanza.cpp4
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)