Parcourir la source

Make the default `archived_messages_page_size` 100

JC Brand il y a 8 ans
Parent
commit
9779e83931
3 fichiers modifiés avec 4 ajouts et 2 suppressions
  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.
     * Templates are no longer stored as attributes on the `_converse` object.
       If you need a particular template, use `require` to load it.
       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]
 - Better support for delayed delivery of presence stanzas (XEP-0203). [jcbrand]
 - The chat room `description` is now shown in the heading, not the `subject`.
 - The chat room `description` is now shown in the heading, not the `subject`.
   [jcbrand]
   [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
 archived_messages_page_size
 ---------------------------
 ---------------------------
 
 
-* Default:  ``20``
+* Default:  ``100``
 
 
 See also: `message_archiving`_
 See also: `message_archiving`_
 
 

+ 1 - 1
src/converse-mam.js

@@ -181,7 +181,7 @@
             var _converse = this._converse;
             var _converse = this._converse;
 
 
             this.updateSettings({
             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: 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: 8000, // Time (in milliseconds) to wait before aborting MAM request
             });
             });