浏览代码

Make the default `archived_messages_page_size` 100

JC Brand 8 年之前
父节点
当前提交
9779e83931
共有 3 个文件被更改,包括 4 次插入2 次删除
  1. 2 0
      docs/CHANGES.md
  2. 1 1
      docs/source/configuration.rst
  3. 1 1
      src/converse-mam.js

+ 2 - 0
docs/CHANGES.md

@@ -16,6 +16,8 @@
     * Templates are no longer stored as attributes on the `_converse` object.
       If you need a particular template, use `require` to load it.
 
+- 100 is the new default [archived_messages_page_size](https://conversejs.org/docs/html/configuration.html#archived-messages-page-size)
+  [jcbrand]
 - Better support for delayed delivery of presence stanzas (XEP-0203). [jcbrand]
 - The chat room `description` is now shown in the heading, not the `subject`.
   [jcbrand]

+ 1 - 1
docs/source/configuration.rst

@@ -211,7 +211,7 @@ Show animations, for example when opening and closing chat boxes.
 archived_messages_page_size
 ---------------------------
 
-* Default:  ``20``
+* Default:  ``100``
 
 See also: `message_archiving`_
 

+ 1 - 1
src/converse-mam.js

@@ -181,7 +181,7 @@
             var _converse = this._converse;
 
             this.updateSettings({
-                archived_messages_page_size: '20',
+                archived_messages_page_size: '100',
                 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
             });