Commit a33b451b authored by JC Brand's avatar JC Brand

Bugfix. Messages were losing followup class when re-rendered

parent ea60f190
...@@ -81,15 +81,21 @@ ...@@ -81,15 +81,21 @@
}, },
render () { render () {
const is_followup = u.hasClass('chat-msg-followup', this.el);
let msg;
if (this.model.isOnlyChatStateNotification()) { if (this.model.isOnlyChatStateNotification()) {
return this.renderChatStateNotification() this.renderChatStateNotification()
} else if (this.model.get('file') && !this.model.get('oob_url')) { } else if (this.model.get('file') && !this.model.get('oob_url')) {
return this.renderFileUploadProgresBar(); this.renderFileUploadProgresBar();
} else if (this.model.get('type') === 'error') { } else if (this.model.get('type') === 'error') {
return this.renderErrorMessage(); this.renderErrorMessage();
} else { } else {
return this.renderChatMessage(); this.renderChatMessage();
} }
if (is_followup) {
u.addClass('chat-msg-followup', this.el);
}
return this.el;
}, },
replaceElement (msg) { replaceElement (msg) {
......
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