|
@@ -43,20 +43,15 @@ export class SyncDeviceController extends BasicController {
|
|
|
...user,
|
|
|
voiceStatus: status,
|
|
|
};
|
|
|
- console.log("changeVoiceStatus", updateUser);
|
|
|
-
|
|
|
const isUpdate = await updateRoomUser(this.room.roomId, this.room.userId, updateUser);
|
|
|
const AllRoomUsers = await getAllRoomUsers(this.room.roomId);
|
|
|
-
|
|
|
// this.logger.info("changeVoiceStatus", { roomId: this.room.roomId, data, AllRoomUsers: AllRoomUsers.length });
|
|
|
-
|
|
|
this.socket.broadcast.to(this.room.roomId).emit(EVENT.changeVoiceStatus, {
|
|
|
- user: this.room.user,
|
|
|
+ user: updateUser,
|
|
|
roomsPerson: AllRoomUsers,
|
|
|
});
|
|
|
- this.socket.broadcast.to(this.room.syncId).emit(EVENT.changeVoiceStatus, {
|
|
|
- ...updateUser,
|
|
|
- user: this.room.user,
|
|
|
+ this.socket.broadcast.to(this.room.syncId).emit(EVENT.changeVoiceStatus, {
|
|
|
+ user: updateUser,
|
|
|
roomsPerson: AllRoomUsers,
|
|
|
});
|
|
|
} catch (error) {
|