Skip to content

Commit

Permalink
fixup! fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinesp authored and Hywan committed Aug 14, 2024
1 parent 5cd2983 commit 1155f75
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crates/matrix-sdk-base/src/sliding_sync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,10 +626,11 @@ impl BaseClient {
let new_state: RoomState = member.membership().into();
if new_state != room_info.state() {
room_info.set_state(new_state);
room_info_notable_updates.insert(
room_info.room_id.to_owned(),
RoomInfoNotableUpdateReasons::MEMBERSHIP,
);
// Update an existing notable update entry or create a new one
room_info_notable_updates
.entry(room_info.room_id.to_owned())
.or_default()
.insert(RoomInfoNotableUpdateReasons::MEMBERSHIP);
}
break;
}
Expand Down

0 comments on commit 1155f75

Please sign in to comment.