Small clean up

This commit is contained in:
Andras Schmelczer 2025-11-29 14:24:15 +00:00
parent 84f077f36b
commit 5417c1ddd0
3 changed files with 11 additions and 9 deletions

View file

@ -282,13 +282,10 @@ export class WebSocketManager {
this.logger.debug(
`Received cursor positions for ${JSON.stringify(message.clients)}`
);
const filteredClients = message.clients.filter(
(client) => client.deviceId !== this.deviceId
);
await awaitAll(
this.remoteCursorsUpdateListeners.map(async (listener) => {
await listener(filteredClients).catch((error: unknown) => {
await listener(message.clients).catch((error: unknown) => {
this.logger.error(
`Error in cursor positions listener: ${String(error)}`
);