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
35db952e
Commit
35db952e
authored
Oct 31, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make `openChatRoom` a closured function
parent
46ca6c7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/converse-muc.js
src/converse-muc.js
+6
-6
No files found.
src/converse-muc.js
View file @
35db952e
...
...
@@ -371,7 +371,7 @@
const
router
=
new
MUCRouter
();
_converse
.
openChatRoom
=
function
(
settings
,
bring_to_foreground
)
{
function
openChatRoom
(
settings
,
bring_to_foreground
)
{
/* Opens a chat room, making sure that certain attributes
* are correct, for example that the "type" is set to
* "chatroom".
...
...
@@ -383,7 +383,7 @@
settings
.
id
=
settings
.
jid
;
settings
.
box_id
=
b64_sha1
(
settings
.
jid
)
return
_converse
.
chatboxviews
.
showChat
(
settings
,
bring_to_foreground
);
}
;
}
_converse
.
ChatRoom
=
_converse
.
ChatBox
.
extend
({
...
...
@@ -2657,7 +2657,7 @@
ev
.
preventDefault
();
const
data
=
this
.
parseRoomDataFromEvent
(
ev
);
if
(
!
_
.
isUndefined
(
data
))
{
_converse
.
openChatRoom
(
data
);
openChatRoom
(
data
);
}
},
...
...
@@ -2705,7 +2705,7 @@
}
}
if
(
result
===
true
)
{
const
chatroom
=
_converse
.
openChatRoom
({
const
chatroom
=
openChatRoom
({
'
jid
'
:
room_jid
,
'
password
'
:
$x
.
attr
(
'
password
'
)
});
...
...
@@ -2798,9 +2798,9 @@
if
(
_
.
isUndefined
(
jids
))
{
throw
new
TypeError
(
'
rooms.open: You need to provide at least one JID
'
);
}
else
if
(
_
.
isString
(
jids
))
{
return
_converse
.
getChatRoom
(
jids
,
attrs
,
_converse
.
openChatRoom
);
return
_converse
.
getChatRoom
(
jids
,
attrs
,
openChatRoom
);
}
return
_
.
map
(
jids
,
_
.
partial
(
_converse
.
getChatRoom
,
_
,
attrs
,
_converse
.
openChatRoom
));
return
_
.
map
(
jids
,
_
.
partial
(
_converse
.
getChatRoom
,
_
,
attrs
,
openChatRoom
));
},
'
get
'
(
jids
,
attrs
,
create
)
{
if
(
_
.
isString
(
attrs
))
{
...
...
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