[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:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user