From 4e4e412b46d44f5f8f13665fb5c2bbc94b5ace61 Mon Sep 17 00:00:00 2001 From: Thanh Dodeur Date: Fri, 26 May 2023 05:16:33 +0000 Subject: [PATCH] [FIX] mail: fix the filter video option in video calls During the refactoring of discuss in 16.3, the setting to filter the videos was wrongly observed on the settings instead of the channel. This commit fixes this issue. closes odoo/odoo#122605 X-original-commit: 00f55c6f925fa02cd292549498643f5415392a9f Signed-off-by: Stockbauer Matthieu (tsm) Signed-off-by: Thanh Dodeur (tso) --- addons/mail/static/src/rtc/call.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/rtc/call.js b/addons/mail/static/src/rtc/call.js index 44e3c6b52fb..a1ad39cf6d6 100644 --- a/addons/mail/static/src/rtc/call.js +++ b/addons/mail/static/src/rtc/call.js @@ -75,7 +75,7 @@ export class Call extends Component { const raisingHandCards = []; const sessionCards = []; const invitationCards = []; - const filterVideos = this.userSettings.showOnlyVideo && this.props.thread.videoCount > 0; + const filterVideos = this.props.thread.showOnlyVideo && this.props.thread.videoCount > 0; for (const session of Object.values(this.props.thread.rtcSessions)) { if (!filterVideos || session.videoStream) { const data = {