Ifdef E2EE notifications
This commit is contained in:
@@ -177,8 +177,10 @@ void Controller::handleNotifications()
|
|||||||
auto body = notification["event"].toObject()["content"].toObject()["body"].toString();
|
auto body = notification["event"].toObject()["content"].toObject()["body"].toString();
|
||||||
|
|
||||||
if (notification["event"]["type"] == "m.room.encrypted") {
|
if (notification["event"]["type"] == "m.room.encrypted") {
|
||||||
|
#ifdef QUOTIENT_E2EE_ENABLED
|
||||||
auto decrypted = m_connection->decryptNotification(notification);
|
auto decrypted = m_connection->decryptNotification(notification);
|
||||||
body = decrypted["content"].toObject()["body"].toString();
|
body = decrypted["content"].toObject()["body"].toString();
|
||||||
|
#endif
|
||||||
if (body.isEmpty()) {
|
if (body.isEmpty()) {
|
||||||
body = i18n("Encrypted Message");
|
body = i18n("Encrypted Message");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user