From ce14e0d0a71db3c445d05ccb787e0d55a174cc2e Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Thu, 8 Oct 2020 16:39:11 -0700 Subject: [PATCH] Remove additional viewer counts from status bar. Closes #155 --- webroot/js/app-video-only.js | 10 ---------- webroot/js/app.js | 14 -------------- 2 files changed, 24 deletions(-) diff --git a/webroot/js/app-video-only.js b/webroot/js/app-video-only.js index 8fd5e59b8..fb79f8759 100644 --- a/webroot/js/app-video-only.js +++ b/webroot/js/app-video-only.js @@ -31,8 +31,6 @@ export default class VideoOnly extends Component { //status streamStatusMessage: MESSAGE_OFFLINE, viewerCount: '', - sessionMaxViewerCount: '', - overallMaxViewerCount: '', }; // timers @@ -131,8 +129,6 @@ export default class VideoOnly extends Component { } const { viewerCount, - sessionMaxViewerCount, - overallMaxViewerCount, online, } = status; @@ -153,8 +149,6 @@ export default class VideoOnly extends Component { } this.setState({ viewerCount, - sessionMaxViewerCount, - overallMaxViewerCount, streamOnline: online, }); } @@ -215,8 +209,6 @@ export default class VideoOnly extends Component { configData, viewerCount, - sessionMaxViewerCount, - overallMaxViewerCount, playerActive, streamOnline, streamStatusMessage, @@ -256,8 +248,6 @@ export default class VideoOnly extends Component {
${streamStatusMessage} ${viewerCount} ${pluralize('viewer', viewerCount)}. - Max ${pluralize('viewer', sessionMaxViewerCount)}. - ${overallMaxViewerCount} overall.
`); diff --git a/webroot/js/app.js b/webroot/js/app.js index e38e178f4..b08cb8512 100644 --- a/webroot/js/app.js +++ b/webroot/js/app.js @@ -64,8 +64,6 @@ export default class App extends Component { // status streamStatusMessage: MESSAGE_OFFLINE, viewerCount: '', - sessionMaxViewerCount: '', - overallMaxViewerCount: '', // dom windowWidth: window.innerWidth, @@ -208,8 +206,6 @@ export default class App extends Component { } const { viewerCount, - sessionMaxViewerCount, - overallMaxViewerCount, online, lastConnectTime, } = status; @@ -231,8 +227,6 @@ export default class App extends Component { } this.setState({ viewerCount, - sessionMaxViewerCount, - overallMaxViewerCount, lastConnectTime, streamOnline: online, }); @@ -357,9 +351,7 @@ export default class App extends Component { displayChat, extraUserContent, orientation, - overallMaxViewerCount, playerActive, - sessionMaxViewerCount, streamOnline, streamStatusMessage, userAvatarImage, @@ -483,12 +475,6 @@ export default class App extends Component { > ${streamStatusMessage} ${viewerCount} ${pluralize('viewer', viewerCount)}. - - Max ${sessionMaxViewerCount} ${" "} ${pluralize('viewer', sessionMaxViewerCount)} this stream. - - - ${overallMaxViewerCount} all time. -