From 0388e48930c6620be7aa83ca807c924bbdff8545 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Tue, 14 Jul 2026 18:12:21 +0900 Subject: [PATCH] =?UTF-8?q?fix(live):=20=EB=9D=BC=EC=9D=B4=EB=B8=8C=20?= =?UTF-8?q?=EC=A2=85=EB=A3=8C=20=ED=9B=84=20=EC=9D=B4=EC=A0=84=20=ED=99=94?= =?UTF-8?q?=EB=A9=B4=EC=9D=84=20=EC=9C=A0=EC=A7=80=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/Explorer/Profile/UserProfileViewModel.swift | 1 - SodaLive/Sources/Live/LiveViewModel.swift | 1 - SodaLive/Sources/Splash/SplashView.swift | 5 ++++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/SodaLive/Sources/Explorer/Profile/UserProfileViewModel.swift b/SodaLive/Sources/Explorer/Profile/UserProfileViewModel.swift index e1ea89d1..5dae8719 100644 --- a/SodaLive/Sources/Explorer/Profile/UserProfileViewModel.swift +++ b/SodaLive/Sources/Explorer/Profile/UserProfileViewModel.swift @@ -300,7 +300,6 @@ final class UserProfileViewModel: ObservableObject { } else { if roomId > 0 { AppState.shared.isShowPlayer = true - AppState.shared.setAppStep(step: .main) } } } else { diff --git a/SodaLive/Sources/Live/LiveViewModel.swift b/SodaLive/Sources/Live/LiveViewModel.swift index cb950eb2..fca06db5 100644 --- a/SodaLive/Sources/Live/LiveViewModel.swift +++ b/SodaLive/Sources/Live/LiveViewModel.swift @@ -144,7 +144,6 @@ final class LiveViewModel: ObservableObject { } else { if roomId > 0 { AppState.shared.isShowPlayer = true - AppState.shared.setAppStep(step: .main) } } } else { diff --git a/SodaLive/Sources/Splash/SplashView.swift b/SodaLive/Sources/Splash/SplashView.swift index 717a7c3f..312db065 100644 --- a/SodaLive/Sources/Splash/SplashView.swift +++ b/SodaLive/Sources/Splash/SplashView.swift @@ -116,7 +116,10 @@ struct SplashView: View { if !UserDefaults.string(forKey: UserDefaultsKey.token).trimmingCharacters(in: .whitespacesAndNewlines).isEmpty { 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 { AppState.shared.setAppStep(step: .creatorDetail(userId: AppState.shared.pushChannelId)) } else if AppState.shared.pushAudioContentId > 0 {