[FIX] mail: restore lost pending new message when thread is loading

Part-of: odoo/odoo#136698
This commit is contained in:
Sébastien Theys
2023-09-28 01:51:38 +00:00
parent 8b1c10ae5a
commit 89aaa2c9ef
@@ -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) {