gemercheung 2 anos atrás
pai
commit
81b44ef964
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      src/socket/socket.gateway.ts

+ 3 - 1
src/socket/socket.gateway.ts

@@ -97,7 +97,9 @@ export class SocketGateway
     // console.log('isRepeat', isRepeat);
     if (!isRepeat) {
       socket.join(message.roomId);
-      await this.roomService.handleUserJoin(socket, message);
+      if (!message.isClient) {
+        await this.roomService.handleUserJoin(socket, message);
+      }
     }
   }
   async handleRepeatJoin(