라이브 새로고침 - 이전과 동일하게 전체로 수정

This commit is contained in:
Yu Sung 2023-12-26 00:50:41 +09:00
parent 15421ca4d5
commit f4bd1c4487
2 changed files with 1 additions and 9 deletions

View File

@ -44,7 +44,7 @@ struct LiveView: View {
AppState.shared.setAppStep(step: .createLive(timeSettingMode: .NOW, onSuccess: onCreateSuccess)) AppState.shared.setAppStep(step: .createLive(timeSettingMode: .NOW, onSuccess: onCreateSuccess))
}, },
onClickRefresh: { onClickRefresh: {
viewModel.refreshLiveNow() viewModel.getSummary()
} }
) )

View File

@ -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) { private func getRoomDetail(roomId: Int, onSuccess: @escaping (GetRoomDetailResponse) -> Void) {
isLoading = true isLoading = true
repository.getRoomDetail(roomId: roomId) repository.getRoomDetail(roomId: roomId)