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
298300e8
Commit
298300e8
authored
Mar 27, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for muc_respect_autojoin
parent
b81fa43a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
dev.html
dev.html
+1
-0
spec/bookmarks.js
spec/bookmarks.js
+12
-0
No files found.
dev.html
View file @
298300e8
...
...
@@ -30,6 +30,7 @@
notify_all_room_messages
:
[
'
discuss@conference.conversejs.org
'
],
muc_respect_autojoin
:
false
,
// bosh_service_url: 'http://chat.example.org:5280/http-bind/',
bosh_service_url
:
'
https://conversejs.org/http-bind/
'
,
// Please use this connection manager only for testing purposes
message_archiving
:
'
always
'
,
...
...
spec/bookmarks.js
View file @
298300e8
...
...
@@ -154,6 +154,7 @@
[{
'
category
'
:
'
pubsub
'
,
'
type
'
:
'
pep
'
}],
[
'
http://jabber.org/protocol/pubsub#publish-options
'
]
);
await
test_utils
.
waitUntil
(()
=>
_converse
.
bookmarks
);
let
jid
=
'
lounge@localhost
'
;
_converse
.
bookmarks
.
create
({
'
jid
'
:
jid
,
...
...
@@ -171,6 +172,17 @@
'
nick
'
:
'
Othello
'
});
expect
(
_
.
isUndefined
(
_converse
.
chatboxviews
.
get
(
jid
))).
toBeFalsy
();
// Check that we don't auto-join if muc_respect_autojoin is false
_converse
.
muc_respect_autojoin
=
false
;
jid
=
'
balcony@conference.shakespeare.lit
'
;
_converse
.
bookmarks
.
create
({
'
jid
'
:
jid
,
'
autojoin
'
:
true
,
'
name
'
:
'
Balcony
'
,
'
nick
'
:
'
Othello
'
});
expect
(
_
.
isUndefined
(
_converse
.
chatboxviews
.
get
(
jid
))).
toBe
(
true
);
done
();
}));
...
...
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