From cb69d7a93ec2711811e735dbba9449ec8a4d0ebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Wed, 22 Sep 2021 16:06:24 +0000 Subject: [PATCH] [FIX] mail: enforce boolean value on computed fields of webRTC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes odoo/odoo#77107 X-original-commit: ad9d6fd0f14a4d954940cf4cd5f4a2bcf91b81b5 Signed-off-by: Sébastien Theys (seb) Signed-off-by: Alexandre Kühn (aku) --- .../rtc_call_participant_card/rtc_call_participant_card.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mail/static/src/models/rtc_call_participant_card/rtc_call_participant_card.js b/addons/mail/static/src/models/rtc_call_participant_card/rtc_call_participant_card.js index 2872bfdc84c..dc73b11593e 100644 --- a/addons/mail/static/src/models/rtc_call_participant_card/rtc_call_participant_card.js +++ b/addons/mail/static/src/models/rtc_call_participant_card/rtc_call_participant_card.js @@ -94,7 +94,7 @@ function factory(dependencies) { */ _computeIsMinimized() { const callViewer = this.rtcCallViewerOfMainCard || this.rtcCallViewerOfTile; - return callViewer && callViewer.isMinimized; + return Boolean(callViewer && callViewer.isMinimized); } /** @@ -110,7 +110,7 @@ function factory(dependencies) { * @returns {boolean} */ _computeIsTalking() { - return this.rtcSession && this.rtcSession.isTalking && !this.rtcSession.isMuted; + return Boolean(this.rtcSession && this.rtcSession.isTalking && !this.rtcSession.isMuted); } /**