Add extension point for plugins to add their caps
This commit is contained in:
		
							parent
							
								
									775fec2fea
								
							
						
					
					
						commit
						d5ddbe3766
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -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 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue