summary refs log tree commit diff
path: root/src/Olm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Olm.h')
-rw-r--r--src/Olm.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Olm.h b/src/Olm.h

index ac1a1617..ab86ca00 100644 --- a/src/Olm.h +++ b/src/Olm.h
@@ -81,9 +81,11 @@ encrypt_group_message(const std::string &room_id, const std::string &device_id, nlohmann::json body); +//! Decrypt an event. Use dont_write_db to prevent db writes when already in a write transaction. DecryptionResult decryptEvent(const MegolmSessionIndex &index, - const mtx::events::EncryptedEvent<mtx::events::msg::Encrypted> &event); + const mtx::events::EncryptedEvent<mtx::events::msg::Encrypted> &event, + bool dont_write_db = false); crypto::Trust calculate_trust(const std::string &user_id, const std::string &curve25519);