fixup! Apply suggestions from code review
This commit is contained in:
@@ -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(())
|
||||
|
||||
Reference in New Issue
Block a user