fix(live): 라이브 종료 후 이전 화면을 유지한다
This commit is contained in:
@@ -300,7 +300,6 @@ final class UserProfileViewModel: ObservableObject {
|
||||
} else {
|
||||
if roomId > 0 {
|
||||
AppState.shared.isShowPlayer = true
|
||||
AppState.shared.setAppStep(step: .main)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -144,7 +144,6 @@ final class LiveViewModel: ObservableObject {
|
||||
} else {
|
||||
if roomId > 0 {
|
||||
AppState.shared.isShowPlayer = true
|
||||
AppState.shared.setAppStep(step: .main)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user