matrix_sdk::room::power_levels

Function power_level_user_changes

Source
pub fn power_level_user_changes(
    content: &RoomPowerLevelsEventContent,
    prev_content: &Option<PossiblyRedactedRoomPowerLevelsEventContent>,
) -> HashMap<OwnedUserId, i64>
Expand description

Checks for changes in the power levels of users in a room based on a new event.