浏览代码

Bump MAM timeout to 20 secs

JC Brand 6 年之前
父节点
当前提交
75b923b580
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      dist/converse.js
  2. 1 1
      docs/source/configuration.rst
  3. 1 1
      src/headless/converse-mam.js

+ 1 - 1
dist/converse.js

@@ -74743,7 +74743,7 @@ _converse_core__WEBPACK_IMPORTED_MODULE_2__["default"].plugins.add('converse-mam
       archived_messages_page_size: '50',
       archived_messages_page_size: '50',
       message_archiving: undefined,
       message_archiving: undefined,
       // Supported values are 'always', 'never', 'roster' (https://xmpp.org/extensions/xep-0313.html#prefs)
       // Supported values are 'always', 'never', 'roster' (https://xmpp.org/extensions/xep-0313.html#prefs)
-      message_archiving_timeout: 8000 // Time (in milliseconds) to wait before aborting MAM request
+      message_archiving_timeout: 20000 // Time (in milliseconds) to wait before aborting MAM request
 
 
     });
     });
 
 

+ 1 - 1
docs/source/configuration.rst

@@ -885,7 +885,7 @@ archived. The other two values are self-explanatory.
 message_archiving_timeout
 message_archiving_timeout
 -------------------------
 -------------------------
 
 
-* Default:  ``8000``
+* Default:  ``20000``
 
 
 The amount of time (in milliseconds) to wait when requesting archived messages
 The amount of time (in milliseconds) to wait when requesting archived messages
 from the XMPP server.
 from the XMPP server.

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

@@ -329,7 +329,7 @@ converse.plugins.add('converse-mam', {
         _converse.api.settings.update({
         _converse.api.settings.update({
             archived_messages_page_size: '50',
             archived_messages_page_size: '50',
             message_archiving: undefined, // Supported values are 'always', 'never', 'roster' (https://xmpp.org/extensions/xep-0313.html#prefs)
             message_archiving: undefined, // Supported values are 'always', 'never', 'roster' (https://xmpp.org/extensions/xep-0313.html#prefs)
-            message_archiving_timeout: 8000, // Time (in milliseconds) to wait before aborting MAM request
+            message_archiving_timeout: 20000, // Time (in milliseconds) to wait before aborting MAM request
         });
         });
 
 
         _converse.onMAMError = function (iq) {
         _converse.onMAMError = function (iq) {