From 89aaa2c9ef6f6f8e72a426f11deeeb0329f28cab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Tue, 26 Sep 2023 17:01:27 +0200 Subject: [PATCH] [FIX] mail: restore lost pending new message when thread is loading Part-of: odoo/odoo#136698 --- .../src/discuss/core/common/discuss_core_common_service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/discuss/core/common/discuss_core_common_service.js b/addons/mail/static/src/discuss/core/common/discuss_core_common_service.js index 2884557abdd..26984dc80ae 100644 --- a/addons/mail/static/src/discuss/core/common/discuss_core_common_service.js +++ b/addons/mail/static/src/discuss/core/common/discuss_core_common_service.js @@ -237,7 +237,7 @@ export class DiscussCoreCommon { if (message.notIn(channel.messages)) { if (!channel.loadNewer) { channel.messages.push(message); - } else if (channel.state === "loading") { + } else if (channel.status === "loading") { channel.pendingNewMessages.push(message); } if (message.isSelfAuthored) {