ui: exclude not ready and active contacts from list of contacts to add to group (e.g. simplex team contact) (#3737)

This commit is contained in:
spaced4ndy
2024-01-24 13:56:38 +04:00
committed by GitHub
parent 838a759a76
commit da9a7f4642
2 changed files with 2 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ fun getContactsToAdd(chatModel: ChatModel, search: String): List<Contact> {
.map { it.chatInfo }
.filterIsInstance<ChatInfo.Direct>()
.map { it.contact }
.filter { it.contactId !in memberContactIds && it.chatViewName.lowercase().contains(s) }
.filter { c -> c.ready && c.active && c.contactId !in memberContactIds && c.chatViewName.lowercase().contains(s) }
.sortedBy { it.displayName.lowercase() }
.toList()
}