fix(live): 라이브 종료 후 이전 화면을 유지한다

This commit is contained in:
Yu Sung
2026-07-14 18:12:21 +09:00
parent 1b26bc28dd
commit 0388e48930
3 changed files with 4 additions and 3 deletions

View File

@@ -300,7 +300,6 @@ final class UserProfileViewModel: ObservableObject {
} else { } else {
if roomId > 0 { if roomId > 0 {
AppState.shared.isShowPlayer = true AppState.shared.isShowPlayer = true
AppState.shared.setAppStep(step: .main)
} }
} }
} else { } else {

View File

@@ -144,7 +144,6 @@ final class LiveViewModel: ObservableObject {
} else { } else {
if roomId > 0 { if roomId > 0 {
AppState.shared.isShowPlayer = true AppState.shared.isShowPlayer = true
AppState.shared.setAppStep(step: .main)
} }
} }
} else { } else {

View File

@@ -116,7 +116,10 @@ struct SplashView: View {
if !UserDefaults.string(forKey: UserDefaultsKey.token).trimmingCharacters(in: .whitespacesAndNewlines).isEmpty { if !UserDefaults.string(forKey: UserDefaultsKey.token).trimmingCharacters(in: .whitespacesAndNewlines).isEmpty {
if AppState.shared.pushRoomId > 0 { if AppState.shared.pushRoomId > 0 {
liveViewModel.enterLiveRoom(roomId: AppState.shared.pushRoomId) let roomId = AppState.shared.pushRoomId
AppState.shared.pushRoomId = 0
AppState.shared.setAppStep(step: .main)
liveViewModel.enterLiveRoom(roomId: roomId)
} else if AppState.shared.pushChannelId > 0 { } else if AppState.shared.pushChannelId > 0 {
AppState.shared.setAppStep(step: .creatorDetail(userId: AppState.shared.pushChannelId)) AppState.shared.setAppStep(step: .creatorDetail(userId: AppState.shared.pushChannelId))
} else if AppState.shared.pushAudioContentId > 0 { } else if AppState.shared.pushAudioContentId > 0 {