From a11b1221a379f25aa13d42e3416a214ce131a098 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 21 Feb 2023 01:37:05 +0100 Subject: Switch to upstream olm error code --- src/encryption/Olm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/encryption/Olm.cpp') 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}; } -- cgit 1.5.1