setChannelInvitationPreference method

Future<void> setChannelInvitationPreference(
  1. bool autoAccept
)

Sets channel invitation preference with autoAccept. Default is true

If autoAccept has been set to false, then current user won't be automatically joined to channels when get invited from other users

Implementation

Future<void> setChannelInvitationPreference(bool autoAccept) async {
  await _int.api.send(ChannelInvitationPreferenceSetRequest(autoAccept));
}