mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-01 16:05:52 +00:00
core: only create feature items in used contacts (#1421)
* core: only create feature items in used contacts * fix, test
This commit is contained in:
committed by
GitHub
parent
87d306383c
commit
60fedbf5d2
@@ -119,6 +119,10 @@ contactConnId = aConnId . contactConn
|
||||
contactConnIncognito :: Contact -> Bool
|
||||
contactConnIncognito = connIncognito . contactConn
|
||||
|
||||
directContact :: Contact -> Bool
|
||||
directContact Contact {contactUsed, activeConn = Connection {connLevel, viaGroupLink}} =
|
||||
(connLevel == 0 && not viaGroupLink) || contactUsed
|
||||
|
||||
data ContactRef = ContactRef
|
||||
{ contactId :: ContactId,
|
||||
localDisplayName :: ContactName
|
||||
|
||||
Reference in New Issue
Block a user