|
@@ -326,7 +326,6 @@ export class RoomAssistant {
|
|
} else {
|
|
} else {
|
|
const hasRoom = await this.redis.hVals(getInKey(roomId));
|
|
const hasRoom = await this.redis.hVals(getInKey(roomId));
|
|
if (hasRoom.length === 0) {
|
|
if (hasRoom.length === 0) {
|
|
- this.illegalMaster = false;
|
|
|
|
this.room.logger.info("房主主动创建房间 :", { roomId, userId });
|
|
this.room.logger.info("房主主动创建房间 :", { roomId, userId });
|
|
await this.buildRoom(roomId, userId, user);
|
|
await this.buildRoom(roomId, userId, user);
|
|
} else {
|
|
} else {
|
|
@@ -334,7 +333,6 @@ export class RoomAssistant {
|
|
const checkIsRoomMaster = await isRoomMaster(roomId, userId);
|
|
const checkIsRoomMaster = await isRoomMaster(roomId, userId);
|
|
console.log("isRoomMaster", checkIsRoomMaster);
|
|
console.log("isRoomMaster", checkIsRoomMaster);
|
|
if (checkIsRoomMaster) {
|
|
if (checkIsRoomMaster) {
|
|
- this.illegalMaster = false;
|
|
|
|
this.room.logger.info("房主已存在房间 :", { roomId, userId, from: user.from });
|
|
this.room.logger.info("房主已存在房间 :", { roomId, userId, from: user.from });
|
|
await this.joinRoom(roomId, userId, user);
|
|
await this.joinRoom(roomId, userId, user);
|
|
|
|
|