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
30febd17
Commit
30febd17
authored
Apr 28, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Throw error if more than one chatroom is given
parent
4c239256
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
src/converse-muc-embedded.js
src/converse-muc-embedded.js
+15
-0
No files found.
src/converse-muc-embedded.js
View file @
30febd17
...
...
@@ -49,5 +49,20 @@
}
},
initialize
:
function
()
{
/* The initialize function gets called as soon as the plugin is
* loaded by converse.js's plugin machinery.
*/
var
_converse
=
this
.
_converse
;
if
(
!
_
.
isArray
(
_converse
.
auto_join_rooms
))
{
throw
new
Error
(
"
converse-muc-embedded: auto_join_rooms must be an Array
"
);
}
if
(
_converse
.
auto_join_rooms
.
length
!==
1
)
{
throw
new
Error
(
"
converse-muc-embedded: It doesn't make
"
+
"
sense to have the auto_join_rooms setting to zero or
"
+
"
more then one, since only one chat room can be open
"
+
"
at any time.
"
)
}
}
});
}));
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