Don't unconditionally include disco info in features

- This breaks the entity caps, because there's duplication.
This commit is contained in:
eta 2020-08-01 18:00:06 +01:00
parent 99df4a56fe
commit 5f4bcb6c8f
1 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,6 @@
(with-component-data-lock (comp)
`((cxml:with-element "query"
(cxml:attribute "xmlns" ,+disco-info-ns+)
(disco-feature +disco-info-ns+)
,@(multiple-value-bind
(to-hostname to-localpart to-resource)
(parse-jid to)
@ -51,12 +50,14 @@
(cond
((equal to (component-name comp))
`((disco-identity "whatsxmpp bridge" "xmpp" "gateway")
(disco-feature ,+disco-info-ns+)
(disco-feature ,+disco-items-ns+)
(disco-feature ,+muc-ns+)))
(user-name
+whatsapp-user-disco-info-list+)
(chat-subject
`((disco-identity ,chat-subject "text" "conference")
(disco-feature ,+disco-info-ns+)
(disco-feature ,+muc-ns+)
(disco-feature ,+muc-stable-id-ns+)
(disco-feature ,+unique-stanzas-ns+)