diff --git a/SodaLive/Sources/Live/LiveView.swift b/SodaLive/Sources/Live/LiveView.swift index acbbdfb..8e8a4fc 100644 --- a/SodaLive/Sources/Live/LiveView.swift +++ b/SodaLive/Sources/Live/LiveView.swift @@ -44,7 +44,7 @@ struct LiveView: View { AppState.shared.setAppStep(step: .createLive(timeSettingMode: .NOW, onSuccess: onCreateSuccess)) }, onClickRefresh: { - viewModel.refreshLiveNow() + viewModel.getSummary() } ) diff --git a/SodaLive/Sources/Live/LiveViewModel.swift b/SodaLive/Sources/Live/LiveViewModel.swift index 6a42667..3688c31 100644 --- a/SodaLive/Sources/Live/LiveViewModel.swift +++ b/SodaLive/Sources/Live/LiveViewModel.swift @@ -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)