getConversation method

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

Implementation

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