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
efa4a9ff
Commit
efa4a9ff
authored
Mar 07, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #577 Add a timeout config var for MAM
parent
4a914646
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
+15
-2
docs/CHANGES.md
docs/CHANGES.md
+1
-0
docs/source/configuration.rst
docs/source/configuration.rst
+11
-0
src/converse-core.js
src/converse-core.js
+3
-2
No files found.
docs/CHANGES.md
View file @
efa4a9ff
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
-
#534 Updated Russian translation [badfiles]
-
#534 Updated Russian translation [badfiles]
-
#566 Do not steal the focus when the chatbox opens automatically [rlanvin]
-
#566 Do not steal the focus when the chatbox opens automatically [rlanvin]
-
#573 xgettext build error:
`'javascript' unknown`
[jcbrand]
-
#573 xgettext build error:
`'javascript' unknown`
[jcbrand]
-
#577 New config variable
[
message_archiving_timeout
](
https://conversejs.org/docs/html/configuration.html#message_archiving_timeout
)
[
jcbrand
]
-
#587 Fix issue when logging out with
`auto_logout=true`
[davec82]
-
#587 Fix issue when logging out with
`auto_logout=true`
[davec82]
-
#589 Save scroll position on minimize and restore it on maximize [rlanvin]
-
#589 Save scroll position on minimize and restore it on maximize [rlanvin]
-
#592 Add random resource for
`auto_login`
, add method generateResource to generate random resource [davec82]
-
#592 Add random resource for
`auto_login`
, add method generateResource to generate random resource [davec82]
...
...
docs/source/configuration.rst
View file @
efa4a9ff
...
@@ -500,6 +500,17 @@ This sets the default archiving preference. Valid values are ``never``, ``always
...
@@ -500,6 +500,17 @@ This sets the default archiving preference. Valid values are ``never``, ``always
``roster`` means that only messages to and from JIDs in your roster will be
``roster`` means that only messages to and from JIDs in your roster will be
archived. The other two values are self-explanatory.
archived. The other two values are self-explanatory.
message_archiving_timeout
-------------------------
* Default: ``8000``
The amount of time (in milliseconds) to wait when requesting archived messages
from the XMPP server.
Used in conjunction with `message_archiving` and in context of `XEP-0313: Message Archive Management <https://xmpp.org/extensions/xep-0313.html>`_.
message_carbons
message_carbons
---------------
---------------
...
...
src/converse-core.js
View file @
efa4a9ff
...
@@ -142,7 +142,7 @@
...
@@ -142,7 +142,7 @@
errback
=
callback
;
errback
=
callback
;
}
}
if
(
!
converse
.
features
.
findWhere
({
'
var
'
:
Strophe
.
NS
.
MAM
}))
{
if
(
!
converse
.
features
.
findWhere
({
'
var
'
:
Strophe
.
NS
.
MAM
}))
{
throw
new
Error
(
'
This server does not support XEP-0313, Message Archive Management
'
);
errback
(
'
This server does not support XEP-0313, Message Archive Management
'
);
}
}
var
queryid
=
converse
.
connection
.
getUniqueId
();
var
queryid
=
converse
.
connection
.
getUniqueId
();
var
attrs
=
{
'
type
'
:
'
set
'
};
var
attrs
=
{
'
type
'
:
'
set
'
};
...
@@ -196,7 +196,7 @@
...
@@ -196,7 +196,7 @@
return
false
;
// There's no callback, so no use in continuing this handler.
return
false
;
// There's no callback, so no use in continuing this handler.
}
}
},
Strophe
.
NS
.
MAM
);
},
Strophe
.
NS
.
MAM
);
converse
.
connection
.
sendIQ
(
stanza
,
null
,
errback
);
converse
.
connection
.
sendIQ
(
stanza
,
null
,
errback
,
converse
.
message_archiving_timeout
);
};
};
...
@@ -370,6 +370,7 @@
...
@@ -370,6 +370,7 @@
keepalive
:
false
,
keepalive
:
false
,
locked_domain
:
undefined
,
locked_domain
:
undefined
,
message_archiving
:
'
never
'
,
// Supported values are 'always', 'never', 'roster' (See https://xmpp.org/extensions/xep-0313.html#prefs )
message_archiving
:
'
never
'
,
// Supported values are 'always', 'never', 'roster' (See https://xmpp.org/extensions/xep-0313.html#prefs )
message_archiving_timeout
:
8000
,
// The amount of time (in milliseconds) to wait before aborting a MAM (XEP-0313) request
message_carbons
:
false
,
// Support for XEP-280
message_carbons
:
false
,
// Support for XEP-280
no_trimming
:
false
,
// Set to true for phantomjs tests (where browser apparently has no width)
no_trimming
:
false
,
// Set to true for phantomjs tests (where browser apparently has no width)
password
:
undefined
,
password
:
undefined
,
...
...
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