[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 <Viewer
clients={ clients={
clients.map((client) => { clients.map((client) => {
if (client.channel?.id === currentChannel?.id) { if (client.channel?.id === currentChannel?.id && client.channel.connection.id === activeConnectionId) {
return client; return client;
} }
}) as IClient[] }) as IClient[]