[FIX] mail: enforce boolean value on computed fields of webRTC

closes odoo/odoo#77107

X-original-commit: ad9d6fd0f14a4d954940cf4cd5f4a2bcf91b81b5
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Alexandre Kühn
2021-09-23 20:18:43 +00:00
parent 57bf42603c
commit cb69d7a93e
@@ -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);
}
/**