declineInvitation method

Future<void> declineInvitation()

Declines received invitation to join this channel.

After this method completes successfully, channel event ChannelEventHandler.onUserDeclinedInvitation will be invoked.

Implementation

Future<void> declineInvitation() async {
  await _sdk.api
      .send(GroupChannelInvitationDeclineRequest(channelUrl: channelUrl));
}