Open conversation by id

Opens a conversation based on the conversationId.

If you have a conversationId for a specific conversation, you can open the
chat UI to that conversation.

See Listen for chat events or Open new conversation to learn how to get
conversation objects and IDs for newly created conversations.

To open a conversation by the conversationId, the ID must be valid and available
in Kustomer. If the conversation ID is not valid, then Kustomer returns a
KusResult.Error response. If the conversation ID is valid and the result is
successful, then Kustomer resolves with a KustomerConversation response.

Example

import KustomerChat from '@kustomer/chat-react-native';

KustomerChat.openConversation('conversationId')
  .then((conversation) => {
    // Chat UI opened to the conversation
    // conversation is an object that contains some details about the conversation
  })
  .catch((error) => {
    // Error opening the conversation
  });