Commit 09c3d30c authored by JC Brand's avatar JC Brand

Make sure messages are marked as followups after re-render

parent 82239d28
...@@ -67223,7 +67223,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ ...@@ -67223,7 +67223,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
}, },
async render() { async render() {
let msg; const is_followup = u.hasClass('chat-msg--followup', this.el);
if (this.model.isOnlyChatStateNotification()) { if (this.model.isOnlyChatStateNotification()) {
this.renderChatStateNotification(); this.renderChatStateNotification();
...@@ -67235,6 +67235,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ ...@@ -67235,6 +67235,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
await this.renderChatMessage(); await this.renderChatMessage();
} }
if (is_followup) {
u.addClass('chat-msg--followup', this.el);
}
return this.el; return this.el;
}, },
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
}, },
async render () { async render () {
let msg; const is_followup = u.hasClass('chat-msg--followup', this.el);
if (this.model.isOnlyChatStateNotification()) { if (this.model.isOnlyChatStateNotification()) {
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')) {
...@@ -79,6 +79,9 @@ ...@@ -79,6 +79,9 @@
} else { } else {
await this.renderChatMessage(); await this.renderChatMessage();
} }
if (is_followup) {
u.addClass('chat-msg--followup', this.el);
}
return this.el; return this.el;
}, },
......
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