diff --git a/addons/mail/static/src/models/rtc/rtc.js b/addons/mail/static/src/models/rtc/rtc.js index a16ccc5f279..bed80e939fa 100644 --- a/addons/mail/static/src/models/rtc/rtc.js +++ b/addons/mail/static/src/models/rtc/rtc.js @@ -151,7 +151,7 @@ function factory(dependencies) { if (!this.isClientRtcCompatible) { return; } - if (!this._peerConnections[sender] && (!channelId || channelId !== this.channel.id)) { + if (!this._peerConnections[sender] && (!channelId || !this.channel || channelId !== this.channel.id)) { return; } switch (event) {