setC2CReceiveMessageOpt method

  1. @override
Future<V2TimCallback> setC2CReceiveMessageOpt({
  1. required List<String> userIDList,
  2. required ReceiveMsgOptEnum opt,
})
override

Implementation

@override
Future<V2TimCallback> setC2CReceiveMessageOpt({
  required List<String> userIDList,
  required ReceiveMsgOptEnum opt,
}) async {
  final result = await TencentImSDKPlugin.v2TIMManager
      .getMessageManager()
      .setC2CReceiveMessageOpt(userIDList: userIDList, opt: opt);
  if (result.code != 0) {
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: result.desc,
        errorCode: result.code));
  }
  return result;
}