diff --git a/addons/mail/static/src/core/web/thread_service_patch.js b/addons/mail/static/src/core/web/thread_service_patch.js index cf3564dba94..746b9ad921b 100644 --- a/addons/mail/static/src/core/web/thread_service_patch.js +++ b/addons/mail/static/src/core/web/thread_service_patch.js @@ -106,7 +106,7 @@ patch(ThreadService.prototype, "mail/core/web", { type: "chatter", }); if (resId === false) { - const tmpId = `virtual${this.nextId++}`; + const tmpId = this.messageService.getNextTemporaryId(); const tmpData = { id: tmpId, author: { id: this.store.self.id },