setChannelInvitationPreference static method
- bool autoAccept
Sets the current User
's preference for GroupChannel
join.
If this is set as true
, the User
will automatically join the GroupChannel
.
If set as false
, the User
can join the GroupChannel
by calling
GroupChannelOperation.acceptInvitation
or decline the invitation by calling GroupChannelOperation.declineInvitation
.
Implementation
static Future<void> setChannelInvitationPreference(bool autoAccept) async {
sbLog.i(StackTrace.current, 'autoAccept: $autoAccept');
await _instance._chat.setChannelInvitationPreference(autoAccept);
}