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
ad9a840c
Commit
ad9a840c
authored
Sep 14, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid saving full MUC JID as domain
parent
4129c0ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
dist/converse.js
dist/converse.js
+3
-7
src/converse-muc-views.js
src/converse-muc-views.js
+3
-3
No files found.
dist/converse.js
View file @
ad9a840c
...
...
@@ -68202,14 +68202,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
showRooms(ev) {
ev.preventDefault();
const data = new FormData(ev.target);
this.model.save('muc_domain',
data.get('server'
));
this.model.save('muc_domain',
Strophe.getDomainFromJid(data.get('server')
));
this.updateRoomsList();
},
setDomain(ev) {
this.model.save({
'muc_domain': ev.target.value
});
this.model.save('muc_domain', Strophe.getDomainFromJid(ev.target.value));
},
setNick(ev) {
...
...
@@ -69805,9 +69803,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
function setMUCDomain(domain, controlboxview) {
_converse.muc_domain = domain;
controlboxview.roomspanel.model.save({
'muc_domain': domain
});
controlboxview.roomspanel.model.save('muc_domain', Strophe.getDomainFromJid(domain));
}
function setMUCDomainFromDisco(controlboxview) {
src/converse-muc-views.js
View file @
ad9a840c
...
...
@@ -412,12 +412,12 @@
showRooms
(
ev
)
{
ev
.
preventDefault
();
const
data
=
new
FormData
(
ev
.
target
);
this
.
model
.
save
(
'
muc_domain
'
,
data
.
get
(
'
server
'
));
this
.
model
.
save
(
'
muc_domain
'
,
Strophe
.
getDomainFromJid
(
data
.
get
(
'
server
'
)
));
this
.
updateRoomsList
();
},
setDomain
(
ev
)
{
this
.
model
.
save
(
{
'
muc_domain
'
:
ev
.
target
.
value
}
);
this
.
model
.
save
(
'
muc_domain
'
,
Strophe
.
getDomainFromJid
(
ev
.
target
.
value
)
);
},
setNick
(
ev
)
{
...
...
@@ -1929,7 +1929,7 @@
function
setMUCDomain
(
domain
,
controlboxview
)
{
_converse
.
muc_domain
=
domain
;
controlboxview
.
roomspanel
.
model
.
save
(
{
'
muc_domain
'
:
domain
}
);
controlboxview
.
roomspanel
.
model
.
save
(
'
muc_domain
'
,
Strophe
.
getDomainFromJid
(
domain
)
);
}
function
setMUCDomainFromDisco
(
controlboxview
)
{
...
...
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