updateAutoAcceptFriendInvitationSetting method

Future<void> updateAutoAcceptFriendInvitationSetting(
  1. bool acceptInvitationAlways
)

Implementation

Future<void> updateAutoAcceptFriendInvitationSetting(
    bool acceptInvitationAlways) async {
  Map req = {'acceptInvitationAlways': acceptInvitationAlways};
  Map result = await ClientChannel.invokeMethod(
      ChatMethodKeys.updateAcceptInvitationAlways, req);
  try {
    EMError.hasErrorFromResult(result);
    _options =
        _options?.copyWith(acceptInvitationAlways: acceptInvitationAlways);
  } on EMError catch (e) {
    throw e;
  }
}