[mirotalk] - add missing boolean set

This commit is contained in:
Miroslav Pejic
2021-01-25 21:04:08 +01:00
parent b51d274b71
commit 23853d19d9
+3 -1
View File
@@ -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