Add extension point for plugins to add their caps

This commit is contained in:
Philipp Hörist 2017-11-15 22:28:11 +01:00
parent 775fec2fea
commit d5ddbe3766
1 changed files with 4 additions and 0 deletions

View File

@ -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