From a216805eefd3d777912f49ff3f4ffda166e7fb82 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Fri, 19 Feb 2021 18:28:48 +0100 Subject: [PATCH] Fix. --- client/videowatch-client-plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/videowatch-client-plugin.js b/client/videowatch-client-plugin.js index 710def18..65f2ba24 100644 --- a/client/videowatch-client-plugin.js +++ b/client/videowatch-client-plugin.js @@ -72,8 +72,8 @@ function displayChatButtons (peertubeHelpers, uuid) { displayButton(buttons, 'close', labelClose, () => closeChat()) toggleShowHideButtons(null) + resolve() }) - resolve() }) return p } @@ -81,10 +81,10 @@ function displayChatButtons (peertubeHelpers, uuid) { function toggleShowHideButtons (chatOpened) { // showing/hiding buttons... document.querySelectorAll('.peertube-plugin-livechat-button-open') - .forEach(button => button.style.display = (chatOpened === false || chatOpened === null ? 'none' : '')) + .forEach(button => button.style.display = (chatOpened === true || chatOpened === null ? 'none' : '')) document.querySelectorAll('.peertube-plugin-livechat-button-close') - .forEach(button => button.style.display = (chatOpened === true || chatOpened === null ? 'none' : '')) + .forEach(button => button.style.display = (chatOpened === false || chatOpened === null ? 'none' : '')) } function openChat () {