summary refs log tree commit diff
path: root/src/Olm.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-06-11 13:12:43 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-06-11 13:12:43 +0200
commitd8c0d4874bb1864a677ae451d93727ab75484f84 (patch)
treedb3dda668b8d265134d49586e96f4a2dd814d906 /src/Olm.cpp
parentBasic community list model (diff)
downloadnheko-d8c0d4874bb1864a677ae451d93727ab75484f84.tar.xz
Render community items
Diffstat (limited to 'src/Olm.cpp')
-rw-r--r--src/Olm.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Olm.cpp b/src/Olm.cpp

index d08c1b3e..ff4c883b 100644 --- a/src/Olm.cpp +++ b/src/Olm.cpp
@@ -206,8 +206,11 @@ handle_olm_message(const OlmMessage &msg) for (const auto &cipher : msg.ciphertext) { // We skip messages not meant for the current device. - if (cipher.first != my_key) + if (cipher.first != my_key) { + nhlog::crypto()->debug( + "Skipping message for {} since we are {}.", cipher.first, my_key); continue; + } const auto type = cipher.second.type; nhlog::crypto()->info("type: {}", type == 0 ? "OLM_PRE_KEY" : "OLM_MESSAGE"); @@ -661,8 +664,10 @@ try_olm_decryption(const std::string &sender_key, const mtx::events::msg::OlmCip for (const auto &id : session_ids) { auto session = cache::getOlmSession(sender_key, id); - if (!session) + if (!session) { + nhlog::crypto()->warn("Unknown olm session: {}:{}", sender_key, id); continue; + } mtx::crypto::BinaryBuf text;