|
@@ -372,10 +372,11 @@ public class RoomServiceImpl implements RoomService {
|
|
|
|
|
|
// 全员静音状态开启
|
|
// 全员静音状态开启
|
|
if (muteAll) {
|
|
if (muteAll) {
|
|
-
|
|
|
|
- // 重置用户当前静音状态
|
|
|
|
for (RoomResult.MemberResult item : roomResult.getMembers()) {
|
|
for (RoomResult.MemberResult item : roomResult.getMembers()) {
|
|
- item.setMicrophone(false);
|
|
|
|
|
|
+ // 重置学生用户当前静音状态
|
|
|
|
+ if (RoleStudent.getValue() == item.getRole()) {
|
|
|
|
+ item.setMicrophone(false);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|