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
5cb7ca02
Commit
5cb7ca02
authored
Sep 09, 2015
by
JC Brand
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #462 from 1st8/master
Fix #461: MUC working with spaces etc. in room names
parents
c3e5bdc6
d08ce409
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
converse.js
converse.js
+5
-4
docs/CHANGES.rst
docs/CHANGES.rst
+1
-0
src/templates/chatroom.html
src/templates/chatroom.html
+1
-1
src/templates/room_item.html
src/templates/room_item.html
+1
-1
No files found.
converse.js
View file @
5cb7ca02
...
...
@@ -2319,15 +2319,16 @@
else
{
$nick
.
removeClass
(
'
error
'
);
}
if
(
ev
.
type
===
'
click
'
)
{
name
=
$
(
ev
.
target
).
text
();
jid
=
$
(
ev
.
target
).
attr
(
'
data-room-jid
'
);
}
else
{
$name
=
this
.
$el
.
find
(
'
input.new-chatroom-name
'
);
$server
=
this
.
$el
.
find
(
'
input.new-chatroom-server
'
);
server
=
$server
.
val
();
name
=
$name
.
val
().
trim
()
.
toLowerCase
()
;
name
=
$name
.
val
().
trim
();
$name
.
val
(
''
);
// Clear the input
if
(
name
&&
server
)
{
jid
=
Strophe
.
escapeNode
(
name
)
+
'
@
'
+
server
;
jid
=
Strophe
.
escapeNode
(
name
.
toLowerCase
()
)
+
'
@
'
+
server
;
$name
.
removeClass
(
'
error
'
);
$server
.
removeClass
(
'
error
'
);
this
.
model
.
save
({
muc_domain
:
server
});
...
...
@@ -2341,7 +2342,7 @@
chatroom
=
converse
.
chatboxviews
.
showChat
({
'
id
'
:
jid
,
'
jid
'
:
jid
,
'
name
'
:
Strophe
.
unescapeNode
(
Strophe
.
getNodeFromJid
(
jid
)),
'
name
'
:
name
||
Strophe
.
unescapeNode
(
Strophe
.
getNodeFromJid
(
jid
)),
'
nick
'
:
nick
,
'
chatroom
'
:
true
,
'
box_id
'
:
b64_sha1
(
jid
)
...
...
@@ -3009,7 +3010,7 @@
getRoomJIDAndNick
:
function
(
nick
)
{
nick
=
nick
||
this
.
model
.
get
(
'
nick
'
);
var
room
=
this
.
model
.
get
(
'
jid
'
);
var
node
=
Strophe
.
escapeNode
(
Strophe
.
getNodeFromJid
(
room
)
);
var
node
=
Strophe
.
getNodeFromJid
(
room
);
var
domain
=
Strophe
.
getDomainFromJid
(
room
);
return
node
+
"
@
"
+
domain
+
(
nick
!==
null
?
"
/
"
+
nick
:
""
);
},
...
...
docs/CHANGES.rst
View file @
5cb7ca02
...
...
@@ -9,6 +9,7 @@ Changelog
* #440 null added as resource to contact [jcbrand]
* Add new event serviceDiscovered [jcbrand]
* Add a new configuration setting `muc_history_max_stanzas <https://conversejs.org/docs/html/configuration.html#muc_history_max_stanzas>`_. [jcbrand]
* #462 Fix MUC rooms with names containing special characters not working [1st8]
0.9.4 (2015-07-04)
------------------
...
...
src/templates/chatroom.html
View file @
5cb7ca02
...
...
@@ -5,7 +5,7 @@
<a
class=
"close-chatbox-button icon-close"
></a>
<a
class=
"toggle-chatbox-button icon-minus"
></a>
<a
class=
"configure-chatroom-button icon-wrench"
style=
"display:none"
></a>
<div
class=
"chat-title"
>
{{
name
}}
</div>
<div
class=
"chat-title"
>
{{
_.escape(name)
}}
</div>
<p
class=
"chatroom-topic"
><p/>
</div>
<div
class=
"chat-body"
><span
class=
"spinner centered"
/></div>
...
...
src/templates/room_item.html
View file @
5cb7ca02
<dd
class=
"available-chatroom"
>
<a
class=
"open-room"
data-room-jid=
"{{jid}}"
title=
"{{open_title}}"
href=
"#"
>
{{
name
}}
</a>
title=
"{{open_title}}"
href=
"#"
>
{{
_.escape(name)
}}
</a>
<a
class=
"room-info icon-room-info"
data-room-jid=
"{{jid}}"
title=
"{{info_title}}"
href=
"#"
>
</a>
</dd>
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