summaryrefslogtreecommitdiffstats
path: root/src/encryption
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-02-21 01:37:05 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2023-02-21 02:21:31 +0100
commita11b1221a379f25aa13d42e3416a214ce131a098 (patch)
treec1c6941f82c2c70ae0aa82973c732eb4c8975d1f /src/encryption
parent07707e155830a6f1153b199b9c5a306d839ba17a (diff)
Switch to upstream olm error code
Diffstat (limited to 'src/encryption')
-rw-r--r--src/encryption/Olm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encryption/Olm.cpp b/src/encryption/Olm.cpp
index 6c5044be..4a6742db 100644
--- a/src/encryption/Olm.cpp
+++ b/src/encryption/Olm.cpp
@@ -1262,7 +1262,7 @@ decryptEvent(const MegolmSessionIndex &index,
} catch (const lmdb::error &e) {
return {DecryptionErrorCode::DbError, e.what(), std::nullopt};
} catch (const mtx::crypto::olm_exception &e) {
- if (e.error_code() == mtx::crypto::OlmErrorCode::UNKNOWN_MESSAGE_INDEX)
+ if (e.error_code() == mtx::crypto::OlmErrorCode::OLM_UNKNOWN_MESSAGE_INDEX)
return {DecryptionErrorCode::MissingSessionIndex, e.what(), std::nullopt};
return {DecryptionErrorCode::DecryptionFailed, e.what(), std::nullopt};
}