2
0
Эх сурвалжийг харах

Enable XEP-0156 support by default

JC Brand 5 жил өмнө
parent
commit
8b496d085e

+ 2 - 0
CHANGES.md

@@ -27,6 +27,8 @@ Soon we'll deprecate the latter, so prepare now.
 - Start using [lit-html](https://lit-html.polymer-project.org/) instead of lodash for templating.
 - Start using [lit-html](https://lit-html.polymer-project.org/) instead of lodash for templating.
 - [muc_fetch_members](https://conversejs.org/docs/html/configuration.html#muc-fetch-members) now also accepts an array of affiliations to fetch.
 - [muc_fetch_members](https://conversejs.org/docs/html/configuration.html#muc-fetch-members) now also accepts an array of affiliations to fetch.
 - Remove the configuration setting `muc_show_join_leave_status`. The optional status message is no longer shown at all.
 - Remove the configuration setting `muc_show_join_leave_status`. The optional status message is no longer shown at all.
+- Support for XEP-0156 is now enabled by default (which means that
+  [discover_connection_methods](https://conversejs.org/docs/html/configuration.html#discover-connection-methods) now has a default value of `true`).
 
 
 ## 6.0.0 (2020-01-09)
 ## 6.0.0 (2020-01-09)
 
 

+ 1 - 1
docs/source/configuration.rst

@@ -674,7 +674,7 @@ set to ``'chat'`` as soon as you've been logged in.
 discover_connection_methods
 discover_connection_methods
 ---------------------------
 ---------------------------
 
 
-* Default: ``false``
+* Default: ``true``
 
 
 Use `XEP-0156 <https://xmpp.org/extensions/xep-0156.html>`_ to discover whether
 Use `XEP-0156 <https://xmpp.org/extensions/xep-0156.html>`_ to discover whether
 the XMPP host for the current user advertises any Websocket or BOSH connection
 the XMPP host for the current user advertises any Websocket or BOSH connection

+ 1 - 1
src/headless/converse-core.js

@@ -128,7 +128,7 @@ const DEFAULT_SETTINGS = {
     blacklisted_plugins: [],
     blacklisted_plugins: [],
     connection_options: {},
     connection_options: {},
     credentials_url: null, // URL from where login credentials can be fetched
     credentials_url: null, // URL from where login credentials can be fetched
-    discover_connection_methods: false,
+    discover_connection_methods: true,
     geouri_regex: /https\:\/\/www.openstreetmap.org\/.*#map=[0-9]+\/([\-0-9.]+)\/([\-0-9.]+)\S*/g,
     geouri_regex: /https\:\/\/www.openstreetmap.org\/.*#map=[0-9]+\/([\-0-9.]+)\/([\-0-9.]+)\S*/g,
     geouri_replacement: 'https://www.openstreetmap.org/?mlat=$1&mlon=$2#map=18/$1/$2',
     geouri_replacement: 'https://www.openstreetmap.org/?mlat=$1&mlon=$2#map=18/$1/$2',
     idle_presence_timeout: 300, // Seconds after which an idle presence is sent
     idle_presence_timeout: 300, // Seconds after which an idle presence is sent