From 08f35dc4dde0bb68f951df0c305050ef88861dae Mon Sep 17 00:00:00 2001 From: Thanh Dodeur Date: Tue, 7 Sep 2021 10:15:55 +0000 Subject: [PATCH] [FIX] mail: prevent traceback when ending call in fullScreen on mobile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit, ending the call on mobile when on fullScreen would lead to a traceback as the callViewer was updated asynchronously because it relies on the browser fullScreen promises. This commit fixes this issue by ensuring that the callViewer still exists when the fullScreen promise is resolved. closes odoo/odoo#76317 X-original-commit: cfadf792ecb471d6a717e6cb899db39e0af9005c Signed-off-by: Sébastien Theys (seb) Signed-off-by: Thanh Dodeur --- .../rtc_option_list/rtc_option_list.xml | 16 +++++-- .../models/rtc_call_viewer/rtc_call_viewer.js | 44 ++++++++++--------- .../models/rtc_controller/rtc_controller.js | 1 + .../models/rtc_option_list/rtc_option_list.js | 16 +++++-- 4 files changed, 50 insertions(+), 27 deletions(-) diff --git a/addons/mail/static/src/components/rtc_option_list/rtc_option_list.xml b/addons/mail/static/src/components/rtc_option_list/rtc_option_list.xml index 92f05c3b262..f7915f74129 100644 --- a/addons/mail/static/src/components/rtc_option_list/rtc_option_list.xml +++ b/addons/mail/static/src/components/rtc_option_list/rtc_option_list.xml @@ -8,10 +8,18 @@ Change layout - + + + + + +