acceptInvitation method
- {String? accessCode}
Accepts the invitation sent to the current User
.
After the acceptance, the User
will be joined to this GroupChannel
.
Implementation
Future<void> acceptInvitation({String? accessCode}) async {
sbLog.i(StackTrace.current, 'accessCode: $accessCode');
await chat.apiClient.send(GroupChannelInvitationAcceptRequest(
chat,
channelUrl: channelUrl,
accessCode: accessCode,
));
}