|
@@ -10,7 +10,7 @@ export class UsersService {
|
|
@InjectRedis() private readonly redis: Redis,
|
|
@InjectRedis() private readonly redis: Redis,
|
|
@Inject(forwardRef(() => RoomService))
|
|
@Inject(forwardRef(() => RoomService))
|
|
private roomService: RoomService,
|
|
private roomService: RoomService,
|
|
- ) {}
|
|
|
|
|
|
+ ) { }
|
|
|
|
|
|
async isUserInRooms(RoomId: string, UserId: string): Promise<boolean> {
|
|
async isUserInRooms(RoomId: string, UserId: string): Promise<boolean> {
|
|
const res = await this.redis.hexists(
|
|
const res = await this.redis.hexists(
|
|
@@ -139,6 +139,8 @@ export class UsersService {
|
|
type: 'invalid-room-params',
|
|
type: 'invalid-room-params',
|
|
code: 403,
|
|
code: 403,
|
|
});
|
|
});
|
|
|
|
+ this.roomService.handleRoomDismiss(RoomId);
|
|
|
|
+ socket.disconnect();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|