mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-02-14 17:44:12 -05:00
It maps user ids to users' power levels. Also, make sure it just returns an empty map if this info is not available, instead of crashing. Then use it in the FFI side to output updated data for the `RoomInfo`. --- * sdk: create new `users_with_power_levels` fn which maps user ids to users' power levels Also, make sure it just returns an empty map if this info is not available, instead of crashing. * Update crates/matrix-sdk/src/room/mod.rs Co-authored-by: Benjamin Bouvier <public@benj.me> Signed-off-by: Jorge Martin Espinosa <angel.arasthel@gmail.com> * Improve tests --------- Signed-off-by: Jorge Martin Espinosa <angel.arasthel@gmail.com> Co-authored-by: Benjamin Bouvier <public@benj.me>