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

This commit is contained in:
JC Brand 2017-12-06 17:01:17 +01:00
parent 41ca34a051
commit a4a1c80b5b
3 changed files with 9 additions and 5 deletions

View File

@ -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`

View File

@ -554,10 +554,13 @@
showHelpMessages (msgs, type, spinner) {
_.each(msgs, (msg) => {
this.$content.append($(tpl_help_message({
'type': type||'info',
'message': msgs
})));
this.content.insertAdjacentHTML(
'beforeend',
tpl_help_message({
'type': type||'info',
'message': xss.filterXSS(msg, {'whiteList': {'strong': []}})
})
);
});
if (spinner === true) {
this.$content.append(tpl_spinner);

View File

@ -1 +1 @@
<div class="chat-{{{o.type}}}">{{{o.message}}}</div>
<div class="chat-{{{o.type}}}">{{o.message}}</div>