From 3cba22ae2265e3b6738c2cabae73a518e691c2c6 Mon Sep 17 00:00:00 2001 From: or-else Date: Sat, 24 Mar 2018 18:45:56 -0700 Subject: [PATCH] disable notification sound for now --- index.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index bab5a55e..1b89a06d 100644 --- a/index.html +++ b/index.html @@ -36,7 +36,7 @@ // Sound to play on message received. var POP_SOUND = new Audio('audio/msg.mp3'); - + // API key. Use https://github.com/tinode/chat/tree/master/keygen to generate your own var API_KEY = "AQEAAAABAAD_rAp4DJh05a1HAwFT3A6K"; @@ -1754,10 +1754,12 @@ // New message received // Skip update if the topic is currently open, otherwise the badge will annoyingly flash. if (this.props.topicSelected !== cont.topic) { - POP_SOUND.play(); + // Disable sound for now. Need to add a config option. + // POP_SOUND.play(); this.resetContactList(); } else if (document.hidden) { - POP_SOUND.play(); + // Disable sound for now. + // POP_SOUND.play(); } } else if (what === "recv") { // Explicitly ignoring "recv" -- it causes no visible updates to contact list.