|
@@ -838,10 +838,6 @@ public class RoomServiceImpl implements RoomService {
|
|
|
if (room == null) {
|
|
|
saveRoom(roomId, roomId, curTime, display);
|
|
|
this.joinImGroup(roomId, schedule.getActualTeacherId(), schedule);
|
|
|
- } else {
|
|
|
- if (roleEnum == RoleTeacher || roleEnum == RoleEnum.RoleAssistant) {
|
|
|
- updateDisplay(roomId, userId, display, 0);
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
UserInfo userInfo = userDao.findByUid(userId);
|
|
@@ -917,6 +913,9 @@ public class RoomServiceImpl implements RoomService {
|
|
|
} else {
|
|
|
imHelper.publishMessage(userId, roomId, msg);
|
|
|
}
|
|
|
+ if (roleEnum == RoleTeacher || roleEnum == RoleEnum.RoleAssistant) {
|
|
|
+ updateDisplay(roomId, userId, display, 0);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
log.info("join room success: roomId = {}, userId = {}, role = {}", roomId, userId, roleEnum);
|