From 06b7093aaa0b5cce58c1191c7e0bf9bdfe135005 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sat, 16 Apr 2022 20:53:58 +0200 Subject: Only build function when E2EE is enabled --- lib/connection.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/connection.cpp') 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) { -- cgit v1.2.3