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