From 23853d19d99a0b865b96390a6a7b199e669c6e35 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Mon, 25 Jan 2021 21:04:08 +0100 Subject: [PATCH] [mirotalk] - add missing boolean set --- www/client.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/client.js b/www/client.js index 809e4587..b0e097c7 100644 --- a/www/client.js +++ b/www/client.js @@ -559,10 +559,11 @@ function setChatRoomBtn() { userLog("info", "Can't Open Chat Room, no peer connection detected"); return; } - e.target.className = "fas fa-comment" + (isChatBoxVisible ? "" : "-slash"); if (!isChatBoxVisible) { + e.target.className = "fas fa-comment-slash"; showChatRoom(); } else { + e.target.className = "fas fa-comment"; get("msgerDraggable").style.display = "none"; isChatBoxVisible = false; } @@ -588,6 +589,7 @@ function setChatRoomBtn() { isChatBoxVisible = false; if (!isButtonsVisible) { get("buttons").style.display = "flex"; + isButtonsVisible = true; } }); // chat send msg