Don't unconditionally include disco info in features
- This breaks the entity caps, because there's duplication.
This commit is contained in:
parent
99df4a56fe
commit
5f4bcb6c8f
|
@ -40,7 +40,6 @@
|
||||||
(with-component-data-lock (comp)
|
(with-component-data-lock (comp)
|
||||||
`((cxml:with-element "query"
|
`((cxml:with-element "query"
|
||||||
(cxml:attribute "xmlns" ,+disco-info-ns+)
|
(cxml:attribute "xmlns" ,+disco-info-ns+)
|
||||||
(disco-feature +disco-info-ns+)
|
|
||||||
,@(multiple-value-bind
|
,@(multiple-value-bind
|
||||||
(to-hostname to-localpart to-resource)
|
(to-hostname to-localpart to-resource)
|
||||||
(parse-jid to)
|
(parse-jid to)
|
||||||
|
@ -51,12 +50,14 @@
|
||||||
(cond
|
(cond
|
||||||
((equal to (component-name comp))
|
((equal to (component-name comp))
|
||||||
`((disco-identity "whatsxmpp bridge" "xmpp" "gateway")
|
`((disco-identity "whatsxmpp bridge" "xmpp" "gateway")
|
||||||
|
(disco-feature ,+disco-info-ns+)
|
||||||
(disco-feature ,+disco-items-ns+)
|
(disco-feature ,+disco-items-ns+)
|
||||||
(disco-feature ,+muc-ns+)))
|
(disco-feature ,+muc-ns+)))
|
||||||
(user-name
|
(user-name
|
||||||
+whatsapp-user-disco-info-list+)
|
+whatsapp-user-disco-info-list+)
|
||||||
(chat-subject
|
(chat-subject
|
||||||
`((disco-identity ,chat-subject "text" "conference")
|
`((disco-identity ,chat-subject "text" "conference")
|
||||||
|
(disco-feature ,+disco-info-ns+)
|
||||||
(disco-feature ,+muc-ns+)
|
(disco-feature ,+muc-ns+)
|
||||||
(disco-feature ,+muc-stable-id-ns+)
|
(disco-feature ,+muc-stable-id-ns+)
|
||||||
(disco-feature ,+unique-stanzas-ns+)
|
(disco-feature ,+unique-stanzas-ns+)
|
||||||
|
|
Loading…
Reference in a new issue