[fix] fixed a bug when connected twice to the same server

This commit is contained in:
Janis
2023-06-28 23:32:18 +02:00
parent 268252bf56
commit f296bba7d6

View File

@@ -57,7 +57,7 @@ export default function App() {
<Viewer
clients={
clients.map((client) => {
if (client.channel?.id === currentChannel?.id) {
if (client.channel?.id === currentChannel?.id && client.channel.connection.id === activeConnectionId) {
return client;
}
}) as IClient[]