diff options
Diffstat (limited to 'addons/mail/static/src/models')
| -rw-r--r-- | addons/mail/static/src/models/composer/composer.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/mail/static/src/models/composer/composer.js b/addons/mail/static/src/models/composer/composer.js index 8bedfa4e3d7..2e087a1bb72 100644 --- a/addons/mail/static/src/models/composer/composer.js +++ b/addons/mail/static/src/models/composer/composer.js @@ -188,6 +188,10 @@ function factory(dependencies) { * @returns {mail.partner[]} */ _computeRecipients() { + if (this.thread && this.thread.model === 'mail.channel') { + // prevent from notifying/adding to followers non-members + return [['unlink-all']]; + } const recipients = [...this.mentionedPartners]; if (this.thread && !this.isLog) { for (const recipient of this.thread.suggestedRecipientInfoList) { |
