aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
authorTobias Fella <fella@posteo.de>2022-04-16 20:53:58 +0200
committerTobias Fella <fella@posteo.de>2022-04-16 20:53:58 +0200
commit06b7093aaa0b5cce58c1191c7e0bf9bdfe135005 (patch)
tree38909ffe64d0ba139f4f287f09fd48ef31e8fae3 /lib/connection.cpp
parentad50a5167b98579e8e4960352653dca995490368 (diff)
downloadlibquotient-06b7093aaa0b5cce58c1191c7e0bf9bdfe135005.tar.gz
libquotient-06b7093aaa0b5cce58c1191c7e0bf9bdfe135005.zip
Only build function when E2EE is enabled
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r--lib/connection.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 4ca82888..1a5e3c6e 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -960,6 +960,7 @@ void Connection::Private::consumeToDeviceEvents(Events&& toDeviceEvents)
#endif
}
+#ifdef Quotient_E2EE_ENABLED
void Connection::Private::handleEncryptedToDeviceEvent(const EncryptedEvent& event)
{
const auto [decryptedEvent, id] = sessionDecryptMessage(event);
@@ -985,6 +986,7 @@ void Connection::Private::handleEncryptedToDeviceEvent(const EncryptedEvent& eve
<< evt.matrixType();
});
}
+#endif
void Connection::Private::consumeDevicesList(DevicesList&& devicesList)
{