File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
backend/src/main/java/io/f1/backend/domain/game Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -294,6 +294,11 @@ public void reconnectSession(
294294 ofPlayerEvent (principal .getUserNickname (), RoomEventType .RECONNECT ));
295295
296296 if (room .isPlaying ()) {
297+ messageSender .sendPersonal (
298+ userDestination ,
299+ MessageType .SYSTEM_NOTICE ,
300+ ofPlayerEvent (principal .getUserNickname (), RoomEventType .RECONNECT_PRIVATE_NOTICE ),
301+ principal );
297302 messageSender .sendPersonal (
298303 userDestination ,
299304 MessageType .RANK_UPDATE ,
@@ -304,11 +309,6 @@ public void reconnectSession(
304309 MessageType .GAME_START ,
305310 toGameStartResponse (room .getQuestions ()),
306311 principal );
307- messageSender .sendPersonal (
308- userDestination ,
309- MessageType .QUESTION_START ,
310- toQuestionStartResponse (room , START_DELAY ),
311- principal );
312312 } else {
313313 RoomSettingResponse roomSettingResponse = toRoomSettingResponse (room );
314314
Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ public enum RoomEventType {
77 END (null ),
88 CORRECT_ANSWER (SystemNoticeMessage .CORRECT_ANSWER ),
99 TIMEOUT (SystemNoticeMessage .TIMEOUT ),
10- RECONNECT (SystemNoticeMessage .RECONNECT );
10+ RECONNECT (SystemNoticeMessage .RECONNECT ),
11+ RECONNECT_PRIVATE_NOTICE (SystemNoticeMessage .RECONNECT_PRIVATE_NOTICE )
12+ ;
1113
1214 private final SystemNoticeMessage systemMessage ;
1315
@@ -17,7 +19,7 @@ public enum RoomEventType {
1719
1820 public String getMessage (String nickname ) {
1921
20- if (this == TIMEOUT ) {
22+ if (this == TIMEOUT || this == RECONNECT_PRIVATE_NOTICE ) {
2123 return systemMessage .getMessage ();
2224 }
2325
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ public enum SystemNoticeMessage {
55 EXIT (" 님이 퇴장하셨습니다" ),
66 CORRECT_ANSWER (" 님 정답입니다 !" ),
77 TIMEOUT ("땡 ~ ⏰ 제한 시간 초과!" ),
8- RECONNECT (" 님이 재연결 되었습니다." );
8+ RECONNECT ("⚠️ 님이 재연결 되었습니다. " ),
9+ RECONNECT_PRIVATE_NOTICE ("⚠️ 다음 라운드부터 참여하실 수 있습니다" );
910
1011 private final String message ;
1112
You can’t perform that action at this time.
0 commit comments