33 lines
984 B
Diff
33 lines
984 B
Diff
|
From b452a984b0fc522c21bb8df7d320bf13960974d0 Mon Sep 17 00:00:00 2001
|
||
|
From: Nicolas Werner <nicolas.werner@hotmail.de>
|
||
|
Date: Thu, 16 Sep 2021 15:51:33 +0200
|
||
|
Subject: [PATCH] Fix compilaton with Olm 3.2.5
|
||
|
|
||
|
---
|
||
|
lib/crypto/client.cpp | 6 +++---
|
||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||
|
|
||
|
diff --git a/lib/crypto/client.cpp b/lib/crypto/client.cpp
|
||
|
index 95cfb35..5017fbb 100644
|
||
|
--- a/lib/crypto/client.cpp
|
||
|
+++ b/lib/crypto/client.cpp
|
||
|
@@ -37,15 +37,15 @@ static const std::array olmErrorStrings{
|
||
|
|
||
|
};
|
||
|
|
||
|
-OlmErrorCode
|
||
|
+mtx::crypto::OlmErrorCode
|
||
|
olm_exception::ec_from_string(std::string_view error)
|
||
|
{
|
||
|
for (size_t i = 0; i < olmErrorStrings.size(); i++) {
|
||
|
if (olmErrorStrings[i] == error)
|
||
|
- return static_cast<OlmErrorCode>(i);
|
||
|
+ return static_cast<mtx::crypto::OlmErrorCode>(i);
|
||
|
}
|
||
|
|
||
|
- return OlmErrorCode::UNKNOWN_ERROR;
|
||
|
+ return mtx::crypto::OlmErrorCode::UNKNOWN_ERROR;
|
||
|
}
|
||
|
|
||
|
void
|