createConversation method

Future<Conversation> createConversation({
  1. required String conversationId,
  2. ConversationType type = ConversationType.Chat,
})

Implementation

Future<Conversation> createConversation({
  required String conversationId,
  ConversationType type = ConversationType.Chat,
}) {
  return checkResult(ChatSDKEvent.createConversation, () async {
    Conversation? conv = await Client.getInstance.chatManager
        .getConversation(conversationId, type: type, createIfNeed: true);
    return conv!;
  });
}