deleteConversation method

  1. @override
Future<V2TimCallback> deleteConversation({
  1. required String conversationID,
})
override

Implementation

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