Commit a4a1c80b authored by JC Brand's avatar JC Brand

Bugfix. In a MUC the `/help` command didn't render properly

parent 41ca34a0
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
- The way the archive ID of a MAM message is specified, has changed. - The way the archive ID of a MAM message is specified, has changed.
See https://xmpp.org/extensions/xep-0313.html#archives_id See https://xmpp.org/extensions/xep-0313.html#archives_id
- Fixed error building DOM toggle_chats.html span.unread-message-count class attribute - 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 ### New Features
- #314 Add support for opening chat rooms with a URL fragment such as `#converse/room?jid=room@domain` - #314 Add support for opening chat rooms with a URL fragment such as `#converse/room?jid=room@domain`
......
...@@ -554,10 +554,13 @@ ...@@ -554,10 +554,13 @@
showHelpMessages (msgs, type, spinner) { showHelpMessages (msgs, type, spinner) {
_.each(msgs, (msg) => { _.each(msgs, (msg) => {
this.$content.append($(tpl_help_message({ this.content.insertAdjacentHTML(
'type': type||'info', 'beforeend',
'message': msgs tpl_help_message({
}))); 'type': type||'info',
'message': xss.filterXSS(msg, {'whiteList': {'strong': []}})
})
);
}); });
if (spinner === true) { if (spinner === true) {
this.$content.append(tpl_spinner); this.$content.append(tpl_spinner);
......
<div class="chat-{{{o.type}}}">{{{o.message}}}</div> <div class="chat-{{{o.type}}}">{{o.message}}</div>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment