From 466149d1ec587e4cfd3c78f2f2e3a7fb5079fc57 Mon Sep 17 00:00:00 2001 From: Jonas Dellinger Date: Thu, 27 Jul 2017 19:54:41 +0200 Subject: [PATCH] Fixed raw templates being ignored when there is only one arg. When there was just one arg and a raw template, the template got swaped out with CONFIG.defaultAltTemplateId --- resources/[system]/chat/html/Message.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/[system]/chat/html/Message.js b/resources/[system]/chat/html/Message.js index bc8ac07..067d842 100644 --- a/resources/[system]/chat/html/Message.js +++ b/resources/[system]/chat/html/Message.js @@ -7,6 +7,11 @@ Vue.component('message', { textEscaped() { let s = this.template ? this.template : this.templates[this.templateId]; + if (this.template) { + //We disable templateId since we are using a direct raw template + this.templateId = -1; + } + //This hack is required to preserve backwards compatability if (this.templateId == CONFIG.defaultTemplateId && this.args.length == 1) {