|
@@ -258,11 +258,11 @@ public class RoomServiceImpl implements RoomService {
|
|
|
return false;
|
|
|
// throw new ApiException(ErrorEnum.ERR_ROOM_NOT_EXIST);
|
|
|
}
|
|
|
-
|
|
|
List<RoomMember> roomMemberList = roomMemberDao.findByRidAndUid(roomId, userId);
|
|
|
if (roomMemberList.size() == 0) {
|
|
|
log.error("{} not exist in room: {}", userId, roomId);
|
|
|
- throw new ApiException(ErrorEnum.ERR_USER_NOT_EXIST_IN_ROOM);
|
|
|
+ return false;
|
|
|
+// throw new ApiException(ErrorEnum.ERR_USER_NOT_EXIST_IN_ROOM);
|
|
|
}
|
|
|
|
|
|
int userRole = roomMemberList.get(0).getRole();
|