summary refs log tree commit diff
path: root/src/Olm.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Olm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Olm.cpp b/src/Olm.cpp
index 048a6c0f..293b12de 100644
--- a/src/Olm.cpp
+++ b/src/Olm.cpp
@@ -1069,7 +1069,7 @@ decryptEvent(const MegolmSessionIndex &index,
                 mtx::events::collections::TimelineEvent te;
                 mtx::events::collections::from_json(body, te);
 
-                return {std::nullopt, std::nullopt, std::move(te.data)};
+                return {DecryptionErrorCode::NoError, std::nullopt, std::move(te.data)};
         } catch (std::exception &e) {
                 return {DecryptionErrorCode::ParsingFailed, e.what(), std::nullopt};
         }