From d5ddbe376614f7a47f6d0d368d48794a464b61cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Wed, 15 Nov 2017 22:28:11 +0100 Subject: [PATCH] Add extension point for plugins to add their caps --- gajim/common/helpers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gajim/common/helpers.py b/gajim/common/helpers.py index 2cdc33549..06142f5fd 100644 --- a/gajim/common/helpers.py +++ b/gajim/common/helpers.py @@ -1354,6 +1354,10 @@ def update_optional_features(account = None): app.gajim_optional_features[a].append(nbxmpp.NS_JINGLE_XTLS) app.gajim_optional_features[a].append(nbxmpp.NS_JINGLE_BYTESTREAM) app.gajim_optional_features[a].append(nbxmpp.NS_JINGLE_IBB) + + # Give plugins the possibility to add their features + app.plugin_manager.extension_point('update_caps', a) + app.caps_hash[a] = caps_cache.compute_caps_hash([app.gajim_identity], app.gajim_common_features + app.gajim_optional_features[a]) # re-send presence with new hash