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
ec6b1939
Commit
ec6b1939
authored
Feb 12, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #486 Update docs and fix failing test.
parent
d573efc9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
+13
-6
docs/CHANGES.md
docs/CHANGES.md
+3
-0
docs/source/configuration.rst
docs/source/configuration.rst
+8
-4
spec/mam.js
spec/mam.js
+1
-1
src/converse-mam.js
src/converse-mam.js
+1
-1
No files found.
docs/CHANGES.md
View file @
ec6b1939
# Changelog
## 2.0.6 (2017-02-01)
-
#486 Honor existing mam user configuration [throwaway42]
## 2.0.5 (2017-02-01)
-
#743, #751, #753 Update to Strophe 1.2.12. SASL-EXTERNAL now has reduced priority, so it won't
be prioritized above other auth mechanisms. [jcbrand]
...
...
docs/source/configuration.rst
View file @
ec6b1939
...
...
@@ -656,13 +656,17 @@ Similar to `default_domain`_ but no other domains are allowed.
message_archiving
-----------------
* Default: ``
never
``
* Default: ``
undefined
``
Provides support for `XEP-0313: Message Archive Management <https://xmpp.org/extensions/xep-0313.html>`_,
whereby messages are archived in the XMPP server for later retrieval. Note, your XMPP server must support
XEP-0313 MAM for this to work.
whereby messages are archived in the XMPP server for later retrieval.
Note, your XMPP server must support XEP-0313 MAM for this to work.
This option sets the default archiving preference.
Valid values are ``undefined``, ``never``, ``always`` and ``roster``.
This option sets the default archiving preference. Valid values are ``never``, ``always`` and ``roster``.
``undefined`` means that any existing MAM configuration, as set by the user or
the server administrator, will be used.
``roster`` means that only messages to and from JIDs in your roster will be
archived. The other two values are self-explanatory.
...
...
spec/mam.js
View file @
ec6b1939
...
...
@@ -387,6 +387,7 @@
IQ_id
=
sendIQ
.
bind
(
this
)(
iq
,
callback
,
errback
);
});
spyOn
(
converse
,
'
onMAMPreferences
'
).
andCallThrough
();
converse
.
message_archiving
=
'
never
'
;
var
feature
=
new
converse
.
Feature
({
'
var
'
:
Strophe
.
NS
.
MAM
...
...
@@ -401,7 +402,6 @@
"
</iq>
"
);
converse
.
message_archiving
=
'
never
'
;
/* Example 15. Server responds with current preferences
*
* <iq type='result' id='juliet2'>
...
...
src/converse-mam.js
View file @
ec6b1939
...
...
@@ -282,7 +282,7 @@
var
prefs
=
feature
.
get
(
'
preferences
'
)
||
{};
if
(
feature
.
get
(
'
var
'
)
===
Strophe
.
NS
.
MAM
&&
prefs
[
'
default
'
]
!==
converse
.
message_archiving
&&
converse
.
message_archiving
)
{
!
_
.
isUndefined
(
converse
.
message_archiving
)
)
{
// Ask the server for archiving preferences
converse
.
connection
.
sendIQ
(
$iq
({
'
type
'
:
'
get
'
}).
c
(
'
prefs
'
,
{
'
xmlns
'
:
Strophe
.
NS
.
MAM
}),
...
...
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