Remove ifdefs for E2EE

This commit is contained in:
Tobias Fella
2023-08-07 22:38:25 +02:00
committed by Carl Schwan
parent 3ab04583ae
commit 67453d9fb8
11 changed files with 2 additions and 30 deletions

View File

@@ -122,10 +122,8 @@ void NotificationsManager::processNotificationJob(QPointer<Quotient::Connection>
}
if (notification["event"]["type"] == "m.room.encrypted") {
#ifdef Quotient_E2EE_ENABLED
auto decrypted = connection->decryptNotification(notification);
body = decrypted["content"].toObject()["body"].toString();
#endif
if (body.isEmpty()) {
body = i18n("Encrypted Message");
}