deleteConversation method

Future<bool> deleteConversation(
  1. String conversationID, {
  2. dynamic funCallBack(
    1. bool bol
    )?,
})

删除会话

Implementation

Future<bool> deleteConversation(String conversationID,
    {Function(bool bol)? funCallBack}) async {
  var deleteConversationRes = await TencentImSDKPlugin.v2TIMManager
      .getConversationManager()
      .deleteConversation(conversationID: conversationID);
  //删除成功
  if (deleteConversationRes.code == 0) {
    funCallBack?.call(true);
    return true;
  } else {
    funCallBack?.call(false);
    return false;
  }
}