inContacts method
- RxChat chat
Indicates whether User from this chat
is already in contacts.
Only meaningful, if chat
is dialog.
Implementation
bool inContacts(RxChat chat) {
if (!chat.chat.value.isDialog) {
return false;
}
return chat.members.values
.firstWhereOrNull((e) => e.user.id != me)
?.user
.user
.value
.contacts
.isNotEmpty ==
true;
}