core (xmpp), component file sharing, plugin XEP-0363: enabled_features + HTTP Upload:

add a mechanism to explicitely enable some features in components, and use it to enable
HTTP Upload only if it's explicitely enabled.
This commit is contained in:
Goffi 2023-03-23 15:38:07 +01:00
commit cb2144bdf4

View file

@ -1067,6 +1067,7 @@ class SatXMPPComponent(SatXMPPEntity, component.Component):
)
)
self.enabled_features = set()
self.identities = [disco.DiscoIdentity("component", "generic", C.APP_NAME)]
# jid is set automatically on bind by Twisted for Client, but not for Component
self.jid = component_jid