From 5301aebe71c679e0fadb0587c54db2e22c1be785 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Mon, 21 Aug 2023 05:23:27 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EB=B8=8C=20=EC=A2=85?= =?UTF-8?q?=EB=A3=8C=20-=20=EB=B0=A9=EC=9E=A5=EC=9D=B4=20=EB=9D=BC?= =?UTF-8?q?=EC=9D=B4=EB=B8=8C=EB=A5=BC=20=EC=A2=85=EB=A3=8C=20=ED=96=88?= =?UTF-8?q?=EC=9D=84=20=EB=95=8C=20=EC=95=B1=EC=9D=B4=20=EC=A3=BD=EB=8A=94?= =?UTF-8?q?=20=EB=B2=84=EA=B7=B8=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/Room/LiveRoomViewModel.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SodaLive/Sources/Live/Room/LiveRoomViewModel.swift b/SodaLive/Sources/Live/Room/LiveRoomViewModel.swift index 43a61b0..939d1ce 100644 --- a/SodaLive/Sources/Live/Room/LiveRoomViewModel.swift +++ b/SodaLive/Sources/Live/Room/LiveRoomViewModel.swift @@ -162,14 +162,13 @@ final class LiveRoomViewModel: NSObject, ObservableObject { } func quitRoom() { - let roomId = liveRoomInfo?.roomId isLoading = true if let index = muteSpeakers.firstIndex(of: UInt(UserDefaults.int(forKey: .userId))) { muteSpeakers.remove(at: index) } - repository.quitRoom(roomId: roomId!) + repository.quitRoom(roomId: AppState.shared.roomId) .sink { result in switch result { case .finished: