Show encryption errors in qml and add request keys button
This commit is contained in:
parent
9f742fe23d
commit
72bbad7485
14 changed files with 220 additions and 165 deletions
|
|
@ -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};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue