mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-21 18:50:47 +03:00
Switch to upstream olm error code
This commit is contained in:
parent
07707e1558
commit
a11b1221a3
3 changed files with 4 additions and 4 deletions
|
@ -597,7 +597,7 @@ if(USE_BUNDLED_MTXCLIENT)
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
MatrixClient
|
MatrixClient
|
||||||
GIT_REPOSITORY https://github.com/Nheko-Reborn/mtxclient.git
|
GIT_REPOSITORY https://github.com/Nheko-Reborn/mtxclient.git
|
||||||
GIT_TAG v0.9.2
|
GIT_TAG e1a24f3752543d4264cb012a20d84fc9d7229709
|
||||||
)
|
)
|
||||||
set(BUILD_LIB_EXAMPLES OFF CACHE INTERNAL "")
|
set(BUILD_LIB_EXAMPLES OFF CACHE INTERNAL "")
|
||||||
set(BUILD_LIB_TESTS OFF CACHE INTERNAL "")
|
set(BUILD_LIB_TESTS OFF CACHE INTERNAL "")
|
||||||
|
|
|
@ -213,8 +213,8 @@ modules:
|
||||||
buildsystem: cmake-ninja
|
buildsystem: cmake-ninja
|
||||||
name: mtxclient
|
name: mtxclient
|
||||||
sources:
|
sources:
|
||||||
- commit: a9a6087ae820c8fb9332422b094cab8e2301db25
|
- commit: e1a24f3752543d4264cb012a20d84fc9d7229709
|
||||||
tag: v0.9.2
|
#tag: v0.9.2
|
||||||
type: git
|
type: git
|
||||||
url: https://github.com/Nheko-Reborn/mtxclient.git
|
url: https://github.com/Nheko-Reborn/mtxclient.git
|
||||||
- config-opts:
|
- config-opts:
|
||||||
|
|
|
@ -1262,7 +1262,7 @@ decryptEvent(const MegolmSessionIndex &index,
|
||||||
} catch (const lmdb::error &e) {
|
} catch (const lmdb::error &e) {
|
||||||
return {DecryptionErrorCode::DbError, e.what(), std::nullopt};
|
return {DecryptionErrorCode::DbError, e.what(), std::nullopt};
|
||||||
} catch (const mtx::crypto::olm_exception &e) {
|
} 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::MissingSessionIndex, e.what(), std::nullopt};
|
||||||
return {DecryptionErrorCode::DecryptionFailed, e.what(), std::nullopt};
|
return {DecryptionErrorCode::DecryptionFailed, e.what(), std::nullopt};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue