[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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user