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

index c426968f..4d144a2d 100644 --- a/src/Olm.cpp +++ b/src/Olm.cpp
@@ -6,6 +6,7 @@ using namespace mtx::crypto; static const std::string STORAGE_SECRET_KEY("secret"); +constexpr auto MEGOLM_ALGO = "m.megolm.v1.aes-sha2"; namespace { auto client_ = std::make_unique<mtx::crypto::OlmClient>(); @@ -142,6 +143,7 @@ encrypt_group_message(const std::string &room_id, data.sender_key = olm::client()->identity_keys().curve25519; data.session_id = res.data.session_id; data.device_id = device_id; + data.algorithm = MEGOLM_ALGO; auto message_index = olm_outbound_group_session_message_index(res.session); nhlog::crypto()->info("next message_index {}", message_index);