getPersistedMessages method

  1. @override
void getPersistedMessages()
override

Fetches persisted messages.

Calls ChatwootCallbacks.onPersistedMessagesRetrieved if persisted messages are found

Implementation

@override
void getPersistedMessages() {
  final persistedMessages = localStorage.messagesDao.getMessages();
  if (persistedMessages.isNotEmpty) {
    callbacks.onPersistedMessagesRetrieved?.call(persistedMessages);
  }
}