diff --git a/addons/mail/static/src/core/common/thread.js b/addons/mail/static/src/core/common/thread.js index 6b30b468667..1a830ca80da 100644 --- a/addons/mail/static/src/core/common/thread.js +++ b/addons/mail/static/src/core/common/thread.js @@ -202,7 +202,11 @@ export class Thread extends Component { const { oeType, oeId } = ev.target.dataset; if (oeType === "highlight") { await this.env.messageHighlight?.highlightMessage( - this.store.Message.get(Number(oeId)), + this.store.Message.insert({ + id: Number(oeId), + resId: this.props.thread.id, + resModel: this.props.thread.model, + }), this.props.thread ); }