|
|
@@ -22,7 +22,7 @@ export class ConnectController extends BasicController {
|
|
|
if ([FROMTYPE.MiniAPP].includes(Number(this.roomController.user.from))) {
|
|
|
const userId = this.roomController.userId;
|
|
|
const from = this.roomController.user.from;
|
|
|
- const roomId = this.roomController.user.roomId;
|
|
|
+ const roomId = this.roomController.roomId;
|
|
|
const role = this.roomController.user.role;
|
|
|
const user = this.roomController.user;
|
|
|
this.roomController.logger.info("断开连接", {
|
|
|
@@ -30,12 +30,12 @@ export class ConnectController extends BasicController {
|
|
|
from,
|
|
|
roomId,
|
|
|
});
|
|
|
- if (this.roomController.isHoster(role)) {
|
|
|
- user.onlineStatus = 0;
|
|
|
- await updateRoomUser(roomId, userId, user);
|
|
|
- this.roomController.roomAssistant.notifyUsersChange(roomId, user, false);
|
|
|
- // await updateRoomUser(this.roomController.user);
|
|
|
- }
|
|
|
+ // if (this.roomController.isHoster(role)) {
|
|
|
+ user.onlineStatus = 0;
|
|
|
+ await updateRoomUser(roomId, userId, user);
|
|
|
+ this.roomController.roomAssistant.notifyUsersChange(roomId, user, false);
|
|
|
+ // await updateRoomUser(this.roomController.user);
|
|
|
+ // }
|
|
|
// this.roomController.roomAssistant.setRoomAvailableBySeconds(this.roomController.sessionId, 3 * 60);
|
|
|
// this.roomController.roomAssistant.disconnect();
|
|
|
// this.roomController.roomAssistant.unWatchRoomExpired();
|