From 9073ea57506e4081881355a508a29ea5325b9e8b Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Mon, 4 Apr 2022 12:51:32 +0200 Subject: ClientExtension: Add handleStanza() overload with e2ee metdata For handling end-to-end-encrypted stanzas it is important to know whether and which encryption was used. This is especially important for replying to IQ stanzas (with the correct encryption). Currently the e2eeMetadata parameter is unused (always nullopt). This is going to change in the following commits. --- src/client/QXmppClient.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client/QXmppClient.cpp') diff --git a/src/client/QXmppClient.cpp b/src/client/QXmppClient.cpp index 6f993a46..2af1274d 100644 --- a/src/client/QXmppClient.cpp +++ b/src/client/QXmppClient.cpp @@ -753,8 +753,9 @@ QXmppVersionManager &QXmppClient::versionManager() void QXmppClient::_q_elementReceived(const QDomElement &element, bool &handled) { + const std::optional e2eeMetadata; for (auto *extension : std::as_const(d->extensions)) { - if (extension->handleStanza(element)) { + if (extension->handleStanza(element, e2eeMetadata) || extension->handleStanza(element)) { handled = true; return; } -- cgit v1.2.3