core: only create feature items in used contacts (#1421)

* core: only create feature items in used contacts

* fix, test
This commit is contained in:
Evgeny Poberezkin
2022-11-25 15:37:36 +00:00
committed by GitHub
parent 87d306383c
commit 60fedbf5d2
3 changed files with 11 additions and 10 deletions
+2 -2
View File
@@ -3678,8 +3678,8 @@ testGroupLink =
alice @@@ [("#team", "connected")]
bob @@@ [("#team", "connected")]
-- calling /_get chat api marks it as used and adds it to chat previews
alice #$> ("/_get chat @2 count=100", chat, chatFeatures)
alice @@@ [("@bob", "Voice messages: enabled"), ("#team", "connected")]
alice #$> ("/_get chat @2 count=100", chat, [])
alice @@@ [("@bob", ""), ("#team", "connected")]
alice <##> bob
alice @@@ [("@bob", "hey"), ("#team", "connected")]