Skip to content

Commit

Permalink
Update crates/matrix-sdk/src/room/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Bouvier <[email protected]>
Signed-off-by: Jorge Martin Espinosa <[email protected]>
  • Loading branch information
jmartinesp and bnjbvr authored Mar 4, 2024
1 parent b9671d8 commit 43c1fdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/matrix-sdk/src/room/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1880,8 +1880,8 @@ impl Room {
let power_levels = self.room_power_levels().await.ok();
let mut user_power_levels = HashMap::<OwnedUserId, i64>::new();
if let Some(power_levels) = power_levels {
for (id, level) in power_levels.users.iter() {
user_power_levels.insert(id.clone(), (*level).into());
for (id, level) in power_levels.users.into_iter() {
user_power_levels.insert(id, level.into());
}
}
user_power_levels
Expand Down

0 comments on commit 43c1fdd

Please sign in to comment.