From c5237e1ac1bdbc62d580bdd586c15d0dc8a92436 Mon Sep 17 00:00:00 2001 From: TSO Date: Fri, 27 Oct 2023 12:23:33 +0200 Subject: [PATCH] [FIX] discuss: use the right rtcSession property in activeCall check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit, since https://github.com/odoo/odoo/pull/137750, the `RtcSession.channelId` property was removed, which prevented the "LIVE" state in calls to be displayed (and hidden) in the right conditions, a missing button in call invitations, and possibly other bugs. This was not caught by tests because there is no test for that. closes odoo/odoo#140082 Signed-off-by: Alexandre Kühn (aku) --- .../static/src/discuss/call/common/call_participant_card.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/discuss/call/common/call_participant_card.js b/addons/mail/static/src/discuss/call/common/call_participant_card.js index 0ac07fc3c6d..48a839e2940 100644 --- a/addons/mail/static/src/discuss/call/common/call_participant_card.js +++ b/addons/mail/static/src/discuss/call/common/call_participant_card.js @@ -71,7 +71,7 @@ export class CallParticipantCard extends Component { } get isOfActiveCall() { - return Boolean(this.rtcSession && this.rtcSession.channelId === this.rtc.state.channel?.id); + return Boolean(this.rtcSession && this.rtcSession.channel?.eq(this.rtc.state.channel)); } get showConnectionState() {