switchToMessages method

void switchToMessages()

Implementation

void switchToMessages() {
  if (_fragment != null) {
    _fragment = null;
    elements.clear();
    _searchSubscription?.cancel();
    chat!.messages.forEach(_add);
    _subscribeFor(chat: chat);
  }
}