라이브 새로고침 - 이전과 동일하게 전체로 수정
This commit is contained in:
parent
15421ca4d5
commit
f4bd1c4487
|
@ -44,7 +44,7 @@ struct LiveView: View {
|
|||
AppState.shared.setAppStep(step: .createLive(timeSettingMode: .NOW, onSuccess: onCreateSuccess))
|
||||
},
|
||||
onClickRefresh: {
|
||||
viewModel.refreshLiveNow()
|
||||
viewModel.getSummary()
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
@ -457,14 +457,6 @@ final class LiveViewModel: ObservableObject {
|
|||
}
|
||||
}
|
||||
|
||||
func refreshLiveNow() {
|
||||
page = 1
|
||||
isLast = false
|
||||
|
||||
self.liveNowItems.removeAll()
|
||||
getLiveNowList()
|
||||
}
|
||||
|
||||
private func getRoomDetail(roomId: Int, onSuccess: @escaping (GetRoomDetailResponse) -> Void) {
|
||||
isLoading = true
|
||||
repository.getRoomDetail(roomId: roomId)
|
||||
|
|
Loading…
Reference in New Issue