Disable smacks by default

This commit is contained in:
mathieui 2016-06-12 21:45:04 +02:00
parent 3de3dbd7fc
commit aa79acb7d9
4 changed files with 17 additions and 1 deletions

View file

@ -172,6 +172,11 @@ use_bookmarks_method =
# colored text for example.
#enable_xhtml_im = true
# Stream Management (XEP-0198) is an extension designed to improve
# the reliability of XMPP in unreliable network conditions (such
# as mobile networks). It can however increase bandwidth usage.
#enable_smacks = false
# Set a number for this setting.
# The join OR status-change notices will be
# displayed according to this number.

View file

@ -302,6 +302,15 @@ to understand what is :ref:`carbons <carbons-details>` or
enabled. There should be no reason to disable this except if you encounter
issues with your server.
enable_smacks
**Default value:** ``false``
Stream Management (XEP-0198) is an extension designed to improve
the reliability of XMPP in unreliable network conditions (such
as mobile networks). It can however increase bandwidth usage.
It also requires server support.
enable_user_activity
**Default value:** ``true``

View file

@ -58,6 +58,7 @@ DEFAULT_CONFIG = {
'enable_user_tune': True,
'enable_vertical_tab_list': False,
'enable_xhtml_im': True,
'enable_smacks': False,
'eval_password': '',
'exec_remote': False,
'extract_inline_images': True,

View file

@ -123,7 +123,8 @@ class Connection(slixmpp.ClientXMPP):
self.plugin['xep_0184'].auto_request = config.get('request_message_receipts')
self.register_plugin('xep_0191')
self.register_plugin('xep_0198')
if config.get('enable_smacks'):
self.register_plugin('xep_0198')
self.register_plugin('xep_0199')
if config.get('enable_user_tune'):