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
bad9b08b
Commit
bad9b08b
authored
May 17, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
`disable_mam` should now be set on the model
parent
038359c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/converse-headline.js
src/converse-headline.js
+2
-2
No files found.
src/converse-headline.js
View file @
bad9b08b
...
...
@@ -82,7 +82,7 @@ converse.plugins.add('converse-headline', {
initialize
()
{
this
.
initDebounced
();
this
.
disable_mam
=
true
;
// Don't do MAM queries for this box
this
.
model
.
disable_mam
=
true
;
// Don't do MAM queries for this box
this
.
model
.
messages
.
on
(
'
add
'
,
this
.
onMessageAdded
,
this
);
this
.
model
.
on
(
'
show
'
,
this
.
show
,
this
);
this
.
model
.
on
(
'
destroy
'
,
this
.
hide
,
this
);
...
...
@@ -116,7 +116,7 @@ converse.plugins.add('converse-headline', {
/* Handler method for all incoming messages of type "headline". */
if
(
utils
.
isHeadlineMessage
(
_converse
,
message
))
{
const
from_jid
=
message
.
getAttribute
(
'
from
'
);
if
(
_
.
includes
(
from_jid
,
'
@
'
)
&&
if
(
_
.
includes
(
from_jid
,
'
@
'
)
&&
!
_converse
.
roster
.
get
(
from_jid
)
&&
!
_converse
.
allow_non_roster_messaging
)
{
return
;
...
...
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