mirror of
				https://github.com/owncast/owncast.git
				synced 2025-11-04 13:27:21 +08:00 
			
		
		
		
	Only show online client count if we are online. closes https://github.com/owncast/owncast/issues/1306
This commit is contained in:
		@ -64,9 +64,10 @@ export default function ChatUsers() {
 | 
				
			|||||||
      When a stream is active and chat is enabled, connected chat clients will be displayed here.
 | 
					      When a stream is active and chat is enabled, connected chat clients will be displayed here.
 | 
				
			||||||
    </p>
 | 
					    </p>
 | 
				
			||||||
  );
 | 
					  );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  return (
 | 
					  return (
 | 
				
			||||||
    <>
 | 
					    <>
 | 
				
			||||||
      <Title>Connected Chat Participants ({clients.length})</Title>
 | 
					      <Title>Connected Chat Participants {online ? `(${clients.length})` : null}</Title>
 | 
				
			||||||
      {connectedUsers}
 | 
					      {connectedUsers}
 | 
				
			||||||
      <br />
 | 
					      <br />
 | 
				
			||||||
      <br />
 | 
					      <br />
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user