restoreChat

fun restoreChat(fragment: Fragment? = null, account: AccountInfo? = null)

Start new chat or Continue an open chat. Chat fragment can be provided by the app - as in case of restoring activity

Usages:

  • Continue last active chat after UI was closed. restoreChat()

  • Starting chat for account. restoreChat(account = BotAccount(...))

  • Start/Continue chat with a provided chat fragment

Parameters

fragment

(optional) NRConversationFragment instance. If not provided, one will be created.

account

(optional) Create a new chat with the provided account. If not provided, the active ChatHandler (current open chat), if available will be restored