diff --git a/modules/UI/videolayout/LargeVideoManager.js b/modules/UI/videolayout/LargeVideoManager.js index e8e934a4ff1e..079585854c8f 100644 --- a/modules/UI/videolayout/LargeVideoManager.js +++ b/modules/UI/videolayout/LargeVideoManager.js @@ -332,14 +332,15 @@ export default class LargeVideoManager { show = APP.conference.isConnectionInterrupted(); } + let id = 'localConnectionMessage'; if (show) { + UIUtil.showElement(id); // Avatar message conflicts with 'videoConnectionMessage', // so it must be hidden this.showRemoteConnectionMessage(false); + } else { + UIUtil.hideElement(id); } - - document.querySelector('#localConnectionMessage') - .classList.toggle('hide', !show); } /** diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js index fbc393dad58b..da645b29a874 100644 --- a/modules/UI/videolayout/VideoLayout.js +++ b/modules/UI/videolayout/VideoLayout.js @@ -1136,8 +1136,13 @@ var VideoLayout = { * video stream is currently HD. */ updateResolutionLabel(isResolutionHD) { - document.querySelector('#videoResolutionLabel') - .classList.toggle('show', isResolutionHD); + let id = 'videoResolutionLabel'; + + if (isResolutionHD) { + UIUtil.showElement(id); + } else { + UIUtil.hideElement(id); + } }, /**