From f4bd1c4487a0b3fb972573c09a907b3b60f958cf Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Tue, 26 Dec 2023 00:50:41 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EB=B8=8C=20=EC=83=88?= =?UTF-8?q?=EB=A1=9C=EA=B3=A0=EC=B9=A8=20-=20=EC=9D=B4=EC=A0=84=EA=B3=BC?= =?UTF-8?q?=20=EB=8F=99=EC=9D=BC=ED=95=98=EA=B2=8C=20=EC=A0=84=EC=B2=B4?= =?UTF-8?q?=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/Live/LiveView.swift | 2 +- SodaLive/Sources/Live/LiveViewModel.swift | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) 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)