diff --git a/addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js b/addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js index 29d82e3ffcc..963278ebe9c 100644 --- a/addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js +++ b/addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js @@ -278,6 +278,9 @@ function factory(dependencies) { id: channelId, model: 'mail.channel', }); + if (!channel && this.messaging.isCurrentUserGuest) { + return; // guests should not receive messages for channels they don't know, and they can't make the channel_info RPC + } const wasChannelExisting = !!channel; const convertedData = this.messaging.models['mail.message'].convertData(messageData);