Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
e03db127
Commit
e03db127
authored
Jul 21, 2015
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a new configuration setting. `muc_history_max_stanzas`
parent
268c4b93
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
converse.js
converse.js
+2
-1
docs/CHANGES.rst
docs/CHANGES.rst
+1
-0
docs/source/configuration.rst
docs/source/configuration.rst
+17
-0
No files found.
converse.js
View file @
e03db127
...
...
@@ -324,6 +324,7 @@
keepalive
:
false
,
message_archiving
:
'
never
'
,
// Supported values are 'always', 'never', 'roster' (See https://xmpp.org/extensions/xep-0313.html#prefs )
message_carbons
:
false
,
// Support for XEP-280
muc_history_max_stanzas
:
undefined
,
// Takes an integer, limits the amount of messages to fetch from chat room's history
no_trimming
:
false
,
// Set to true for phantomjs tests (where browser apparently has no width)
ping_interval
:
180
,
//in seconds
play_sounds
:
false
,
...
...
@@ -2774,7 +2775,7 @@
this
.
occupantsview
.
chatroomview
=
this
;
this
.
render
();
this
.
occupantsview
.
model
.
fetch
({
add
:
true
});
this
.
join
(
null
);
this
.
join
(
null
,
{
'
maxstanzas
'
:
converse
.
muc_history_max_stanzas
}
);
converse
.
emit
(
'
chatRoomOpened
'
,
this
);
this
.
$el
.
insertAfter
(
converse
.
chatboxviews
.
get
(
"
controlbox
"
).
$el
);
...
...
docs/CHANGES.rst
View file @
e03db127
...
...
@@ -7,6 +7,7 @@ Changelog
* #439 auto_login and keepalive not working [jcbrand]
* #440 null added as resource to contact [jcbrand]
* Add new event serviceDiscovered [jcbrand]
* Add a new configuration setting `muc_history_max_stanzas`. [jcbrand]
0.9.4 (2015-07-04)
------------------
...
...
docs/source/configuration.rst
View file @
e03db127
...
...
@@ -361,6 +361,23 @@ Message carbons is the XEP (Jabber protocol extension) specifically drafted to
solve this problem, while `forward_messages`_ uses
`stanza forwarding <http://www.xmpp.org/extensions/xep-0297.html>`_
muc_history_max_stanzas
-----------------------
* Default: ``undefined``
This option allows you to specify the maximum amount of messages to be shown in a
chat room when you enter it. By default, the amount specified in the room
configuration or determined by the server will be returned.
Please note, this option is not related to
`XEP-0313 Message Archive Management <https://xmpp.org/extensions/xep-0313.html>`_,
which also allows you to show archived chat room messages, but follows a
different approach.
If you're using MAM for archiving chat room messages, you might want to set
this option to zero.
expose_rid_and_sid
------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment