From e4680284ea18976fe537b2a3d54d93c1693f55e1 Mon Sep 17 00:00:00 2001 From: Miroslav Date: Fri, 25 Nov 2022 09:24:19 +0100 Subject: [PATCH] [mirotalksfu] - add msg popup --- public/js/Room.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/js/Room.js b/public/js/Room.js index 382fd907..8ff53c72 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -1053,8 +1053,13 @@ function handleSelects() { }; // chat showChatOnMsg.onchange = (e) => { - rc.showChatOnMessage = e.currentTarget.checked; sound('click'); + rc.showChatOnMessage = e.currentTarget.checked; + if (rc.showChatOnMessage) { + userLog('info', "Chat will be shown, when I'm receive a new message", 'top-end'); + } else { + userLog('info', "Chat not will be shown, when I'm receive a new message", 'top-end'); + } }; // whiteboard options wbDrawingColorEl.onchange = () => { @@ -1295,6 +1300,7 @@ function userLog(icon, message, position, timer = 3000) { position: position, showConfirmButton: false, timer: timer, + timerProgressBar: true, }); Toast.fire({ icon: icon,