-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdk: create new
users_with_power_levels
fn (#3182)
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 <[email protected]> Signed-off-by: Jorge Martin Espinosa <[email protected]> * Improve tests --------- Signed-off-by: Jorge Martin Espinosa <[email protected]> Co-authored-by: Benjamin Bouvier <[email protected]>
- Loading branch information
1 parent
4b56ca1
commit 0c98e26
Showing
4 changed files
with
242 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters