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
a4a1c80b
Commit
a4a1c80b
authored
Dec 06, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix. In a MUC the `/help` command didn't render properly
parent
41ca34a0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
CHANGES.md
CHANGES.md
+1
-0
src/converse-chatview.js
src/converse-chatview.js
+7
-4
src/templates/help_message.html
src/templates/help_message.html
+1
-1
No files found.
CHANGES.md
View file @
a4a1c80b
...
...
@@ -17,6 +17,7 @@
-
The way the archive ID of a MAM message is specified, has changed.
See https://xmpp.org/extensions/xep-0313.html#archives_id
-
Fixed error building DOM toggle_chats.html span.unread-message-count class attribute
-
Bugfix. In a MUC the
`/help`
command didn't render properly.
### New Features
-
#314 Add support for opening chat rooms with a URL fragment such as
`#converse/room?jid=room@domain`
...
...
src/converse-chatview.js
View file @
a4a1c80b
...
...
@@ -554,10 +554,13 @@
showHelpMessages
(
msgs
,
type
,
spinner
)
{
_
.
each
(
msgs
,
(
msg
)
=>
{
this
.
$content
.
append
(
$
(
tpl_help_message
({
this
.
content
.
insertAdjacentHTML
(
'
beforeend
'
,
tpl_help_message
({
'
type
'
:
type
||
'
info
'
,
'
message
'
:
msgs
})));
'
message
'
:
xss
.
filterXSS
(
msg
,
{
'
whiteList
'
:
{
'
strong
'
:
[]}})
})
);
});
if
(
spinner
===
true
)
{
this
.
$content
.
append
(
tpl_spinner
);
...
...
src/templates/help_message.html
View file @
a4a1c80b
<div
class=
"chat-{{{o.type}}}"
>
{{
{o.message}
}}
</div>
<div
class=
"chat-{{{o.type}}}"
>
{{
o.message
}}
</div>
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