fixup! Apply suggestions from code review

This commit is contained in:
Damir Jelić
2023-04-05 13:15:38 +02:00
parent 673db38a72
commit 82a4b53cf9
+8 -8
View File
@@ -680,14 +680,14 @@ impl OlmMachine {
) -> OlmResult<()> {
if let RoomKeyWithheldContent::MegolmV1AesSha2(
MegolmV1AesSha2WithheldContent::BlackListed(c)
| MegolmV1AesSha2WithheldContent::Unverified(c)
) = &event.content {
changes
.withheld_session_info
.entry(c.room_id.to_owned())
.or_insert_with(BTreeMap::default)
.insert(c.session_id.to_owned(), event.to_owned());
}
| MegolmV1AesSha2WithheldContent::Unverified(c),
) = &event.content
{
changes
.withheld_session_info
.entry(c.room_id.to_owned())
.or_insert_with(BTreeMap::default)
.insert(c.session_id.to_owned(), event.to_owned());
}
Ok(())