Add toggle to disable decrypting notifications
This commit is contained in:
parent
37009906bb
commit
8a4bb32b4a
5 changed files with 44 additions and 6 deletions
|
|
@ -276,7 +276,8 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QObject *parent)
|
|||
|
||||
if (auto encryptedEvent =
|
||||
std::get_if<mtx::events::EncryptedEvent<mtx::events::msg::Encrypted>>(
|
||||
&event)) {
|
||||
&event);
|
||||
encryptedEvent && userSettings_->decryptNotifications()) {
|
||||
MegolmSessionIndex index(room_id, encryptedEvent->content);
|
||||
|
||||
auto result = olm::decryptEvent(index, *encryptedEvent);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue