Function wicrs_server::api::unmute_user [−][src]
pub async fn unmute_user(
actor_id: &str,
hub_id: ID,
user_id: &str
) -> Result<()>
Expand description
Unmutes a user in a hub.
Arguments
actor_id
- ID of the user who is unmuting.hub_id
- Hub in which the user is being unmuted.user_id
- ID of the user who is to be unmuted.
Errors
This function may fail for any of the following reasons:
- The user performing the unmute is not in the hub
- The hub could not be loaded for any of the reasons outlined by
Hub::load
. - The user performing the unmute does not have permission to unmute other users.
- The unmute failed for any of the reasons outlined by
Hub::unmute_user
.