[FIX] discuss: use the right rtcSession property in activeCall check

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) <aku@odoo.com>
This commit is contained in:
TSO
2023-10-27 16:09:39 +00:00
parent 2074c7e714
commit c5237e1ac1
@@ -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() {