diff --git a/src/css/style.css b/src/css/style.css index 04a326d8..ebe7bbf8 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -665,7 +665,9 @@ small { }*/ /* Show the tooltip text when you mouse over the tooltip container */ -.tooltip:hover .tooltiptext { - visibility: visible; - opacity: 1; +@media (hover: hover) { + .tooltip:hover .tooltiptext { + visibility: visible; + opacity: 1; + } } diff --git a/src/js/videocall.js b/src/js/videocall.js index c6757ce7..e51819bc 100644 --- a/src/js/videocall.js +++ b/src/js/videocall.js @@ -18,6 +18,10 @@ function onCallMessage(pub, call) { return; } if (call.offer) { + if (chats[pub].rejectedTime && (new Date() - chats[pub].rejectedTime < 5000)) { + rejectCall(pub); + return; + } console.log('incoming call from', pub, call); if (!activeCall && $('#incoming-call').length === 0) { activeCall = pub; @@ -28,7 +32,7 @@ function onCallMessage(pub, call) { var answer = $('