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
d42b8727
Commit
d42b8727
authored
May 07, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check if room supports MAM before qyerying
instead of wrongly checking the bare JID
parent
776f49d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/converse-mam.js
src/converse-mam.js
+3
-1
No files found.
src/converse-mam.js
View file @
d42b8727
...
@@ -153,7 +153,9 @@
...
@@ -153,7 +153,9 @@
*/
*/
if
(
this
.
disable_mam
)
{
return
;
}
if
(
this
.
disable_mam
)
{
return
;
}
const
{
_converse
}
=
this
.
__super__
;
const
{
_converse
}
=
this
.
__super__
;
_converse
.
api
.
disco
.
supports
(
Strophe
.
NS
.
MAM
,
_converse
.
bare_jid
).
then
(
const
mam_jid
=
this
.
model
.
get
(
'
type
'
)
===
CHATROOMS_TYPE
?
this
.
model
.
get
(
'
jid
'
)
:
_converse
.
bare_jid
;
_converse
.
api
.
disco
.
supports
(
Strophe
.
NS
.
MAM
,
mam_jid
).
then
(
(
results
)
=>
{
// Success
(
results
)
=>
{
// Success
if
(
results
.
length
)
{
if
(
results
.
length
)
{
const
most_recent_msg
=
utils
.
getMostRecentMessage
(
this
.
model
);
const
most_recent_msg
=
utils
.
getMostRecentMessage
(
this
.
model
);
...
...
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