라이브 생성 푸시 - 예약중인 라이브의 경우 상세 페이지가 나오도록 수정

This commit is contained in:
Yu Sung
2023-09-04 19:03:02 +09:00
parent f08d72745e
commit 05f5a4fe82
2 changed files with 71 additions and 2 deletions

View File

@@ -124,6 +124,25 @@ struct HomeView: View {
NotificationSettingsDialog()
}
if liveViewModel.isShowPaymentDialog {
SodaDialog(
title: liveViewModel.paymentDialogTitle,
desc: liveViewModel.paymentDialogDesc,
confirmButtonTitle: liveViewModel.paymentDialogConfirmTitle,
confirmButtonAction: liveViewModel.paymentDialogConfirmAction,
cancelButtonTitle: liveViewModel.paymentDialogCancelTitle,
cancelButtonAction: liveViewModel.hidePopup
)
}
if liveViewModel.isShowPasswordDialog {
LiveRoomPasswordDialog(
isShowing: $liveViewModel.isShowPasswordDialog,
can: liveViewModel.secretOrPasswordDialogCan,
confirmAction: liveViewModel.passwordDialogConfirmAction
)
}
if let eventItem = appState.eventPopup {
VStack(spacing: 0) {
Spacer()
@@ -148,7 +167,7 @@ struct HomeView: View {
appState.setAppStep(step: .main)
if value > 0 {
liveViewModel.enterRoom(roomId: value)
liveViewModel.enterLiveRoom(roomId: value)
}
}
}
@@ -182,7 +201,7 @@ struct HomeView: View {
.onAppear {
if appState.pushRoomId > 0 {
DispatchQueue.main.asyncAfter(deadline: .now() + 1.5) {
liveViewModel.enterRoom(roomId: appState.pushRoomId)
liveViewModel.enterLiveRoom(roomId: appState.pushRoomId)
}
} else if appState.pushChannelId > 0 {
DispatchQueue.main.asyncAfter(deadline: .now() + 1.5) {