From 51905734e7bfaed6c232c084825c1e6a1dfeacee Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Fri, 11 Aug 2023 18:58:05 -0700 Subject: [PATCH] Bugfix on unMutualVideo on who list update --- web/static/js/BareRTC.js | 21 +-------------------- web/templates/chat.html | 9 --------- 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/web/static/js/BareRTC.js b/web/static/js/BareRTC.js index f327367..e2bd878 100644 --- a/web/static/js/BareRTC.js +++ b/web/static/js/BareRTC.js @@ -1630,6 +1630,7 @@ const app = Vue.createApp({ unMutualVideo() { // If we had our camera on to watch a video of someone who wants mutual cameras, // and then we turn ours off: we should unfollow the ones with mutual video. + if (this.webcam.active) return; for (let row of this.whoList) { let username = row.username; if ((row.video & this.VideoFlag.MutualRequired) && this.WebRTC.pc[username] != undefined) { @@ -1670,26 +1671,6 @@ const app = Vue.createApp({ return false; }, - // Show who watches our video. - showViewers() { - // TODO: for now, ChatClient is our bro. - let users = Object.keys(this.webcam.watching); - if (users.length === 0) { - this.ChatClient("There is currently nobody viewing your camera."); - } else { - this.ChatClient("Your current webcam viewers are:

" + users.join(", ")); - } - - // Also focus the Watching list. - this.whoTab = 'watching'; - - // TODO: if mobile, show the panel - this width matches - // the media query in chat.css - if (screen.width < 1024) { - this.openWhoPanel(); - } - }, - // Boot someone off yourn video. bootUser(username) { if (!window.confirm( diff --git a/web/templates/chat.html b/web/templates/chat.html index e0e8afd..f31753b 100644 --- a/web/templates/chat.html +++ b/web/templates/chat.html @@ -511,15 +511,6 @@ Unmute - - -