We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MissingRoomKey
1 parent 284db61 commit 3b84b2cCopy full SHA for 3b84b2c
bindings/matrix-sdk-crypto-ffi/src/error.rs
@@ -78,10 +78,10 @@ pub enum DecryptionError {
78
79
impl From<MegolmError> for DecryptionError {
80
fn from(value: MegolmError) -> Self {
81
- match value {
+ match &value {
82
MegolmError::MissingRoomKey(withheld_code) => Self::MissingRoomKey {
83
- error: "Withheld Inbound group session".to_owned(),
84
- withheld_code: withheld_code.map(|w| w.as_str().to_owned()),
+ error: value.to_string(),
+ withheld_code: withheld_code.as_ref().map(|w| w.as_str().to_owned()),
85
},
86
_ => Self::Megolm { error: value.to_string() },
87
}
0 commit comments