From dffe3d1a2688c7e5a680a4a67348455ca5fd0aba Mon Sep 17 00:00:00 2001 From: JC Brand Date: Tue, 3 Dec 2019 13:54:28 +0100 Subject: [PATCH] smacks: Set `enable_smacks` to `true` as default --- CHANGES.md | 3 ++- src/headless/converse-smacks.js | 2 +- tests/mock.js | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 14158a72d..b5fa7daff 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,9 +2,10 @@ ## 6.0.0 (Unreleased) +- [enable_smacks](https://conversejs.org/docs/html/configuration.html#enable-smacks) is not set to `true` by default. +- Refactor some presence and status handling code from `converse-core` into `@converse/headless/converse-status`. - Add support for [XEP-0424 Message Retraction](http://localhost:3080/extensions/xep-0424.html) - Add support for [XEP-0425 Message Moderation](http://localhost:3080/extensions/xep-0425.html) -- Refactor some presence and status handling code from `converse-core` into `@converse/headless/converse-status`. - New API [\_converse.api.headlines](https://conversejs.org/docs/html/api/-_converse.api.headlines.html#.get) - New config option [allow_message_retraction](https://conversejs.org/docs/html/configuration.html#allow-message-retraction) - New config option [muc-show-logs-before-join](https://conversejs.org/docs/html/configuration.html#muc-show-logs-before-join) diff --git a/src/headless/converse-smacks.js b/src/headless/converse-smacks.js index f9352a1a8..4da247d04 100644 --- a/src/headless/converse-smacks.js +++ b/src/headless/converse-smacks.js @@ -29,7 +29,7 @@ converse.plugins.add('converse-smacks', { // Refer to docs/source/configuration.rst for explanations of these // configuration settings. _converse.api.settings.update({ - 'enable_smacks': false, + 'enable_smacks': true, 'smacks_max_unacked_stanzas': 5, }); diff --git a/tests/mock.js b/tests/mock.js index 9564ce30e..47328961a 100644 --- a/tests/mock.js +++ b/tests/mock.js @@ -228,8 +228,9 @@ 'animate': false, 'auto_subscribe': false, 'bosh_service_url': 'montague.lit/http-bind', - 'loglevel': 'warn', + 'enable_smacks': false, 'i18n': 'en', + 'loglevel': 'warn', 'no_trimming': true, 'play_sounds': false, 'use_emojione': false,