gemercheung %!s(int64=2) %!d(string=hai) anos
pai
achega
81b44ef964
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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(