selectChat method
- RxChat chat
Selects or unselects the provided chat
, meaning adding or removing it
from the selectedChats.
Implementation
void selectChat(RxChat chat) {
if (selectedChats.contains(chat.id)) {
selectedChats.remove(chat.id);
} else {
selectedChats.add(chat.id);
}
}