deleteConversation method

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

删除会话

请注意:

删除会话会在本地删除的同时,在服务器也会同步删除。
会话内的消息在本地删除的同时,在服务器也会同步删除。

Implementation

@override
Future<V2TimCallback> deleteConversation({
  required String conversationID,
}) async {
  var formatedConversationID = conversationID.replaceAll("c2c_", "C2C");
  formatedConversationID = formatedConversationID.replaceAll("group_", "GROUP");
  return await _v2TIMConversationManager.deleteConversation({"conversationID": formatedConversationID});
}