unmuteUser method

Future<void> unmuteUser({
  1. required String userId,
})

Unmutes user from this channel.

Implementation

Future<void> unmuteUser({required String userId}) async {
  if (userId.isEmpty) {
    throw InvalidParameterError();
  }

  await _sdk.api.send(ChannelUserUnmuteRequest(
    targetId: userId,
    channelType: channelType,
    channelUrl: channelUrl,
  ));
}