Mercurial > libervia-backend
diff sat/core/xmpp.py @ 4021:412b99c29d83
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.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 23 Mar 2023 15:38:07 +0100 |
parents | 2d59974a8e3e |
children | 78b5f356900c |
line wrap: on
line diff
--- a/sat/core/xmpp.py Thu Mar 23 15:32:10 2023 +0100 +++ b/sat/core/xmpp.py Thu Mar 23 15:38:07 2023 +0100 @@ -1067,6 +1067,7 @@ ) ) + 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