From e2faba153f13c139d0cdb5dc2382ed6ae908cc73 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Mon, 24 Oct 2022 13:02:03 +0200 Subject: [PATCH] Ifdef E2EE notifications --- src/controller.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controller.cpp b/src/controller.cpp index 26c170bf2..5548d082f 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -177,8 +177,10 @@ void Controller::handleNotifications() auto body = notification["event"].toObject()["content"].toObject()["body"].toString(); if (notification["event"]["type"] == "m.room.encrypted") { +#ifdef QUOTIENT_E2EE_ENABLED auto decrypted = m_connection->decryptNotification(notification); body = decrypted["content"].toObject()["body"].toString(); +#endif if (body.isEmpty()) { body = i18n("Encrypted Message"); }