From c5fdfcafdacb64afe45a8572495f3e4212373b73 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Mon, 21 Aug 2023 05:38:53 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EB=B8=8C=20=EB=B0=A9=20-=20?= =?UTF-8?q?=EC=8A=A4=ED=94=BC=EC=BB=A4=20=EC=B5=9C=EB=8C=80=2010=20->=205?= =?UTF-8?q?=EB=AA=85=EC=9C=BC=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 --- .../Sources/Live/Room/Dialog/LiveRoomProfileItemTitleView.swift | 2 +- .../Sources/Live/Room/Dialog/LiveRoomProfilesDialogView.swift | 2 +- SodaLive/Sources/Live/Room/LiveRoomView.swift | 2 +- SodaLive/Sources/Live/Room/LiveRoomViewModel.swift | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SodaLive/Sources/Live/Room/Dialog/LiveRoomProfileItemTitleView.swift b/SodaLive/Sources/Live/Room/Dialog/LiveRoomProfileItemTitleView.swift index 157d2f6..71feff1 100644 --- a/SodaLive/Sources/Live/Room/Dialog/LiveRoomProfileItemTitleView.swift +++ b/SodaLive/Sources/Live/Room/Dialog/LiveRoomProfileItemTitleView.swift @@ -28,7 +28,7 @@ struct LiveRoomProfileItemTitleView: View { } if let totalCount = totalCount { - Text("/\(totalCount > 9 ? 9 : totalCount - 1)") + Text("/\(totalCount > 4 ? 4 : totalCount - 1)") .font(.custom(Font.medium.rawValue, size: 13)) .foregroundColor(Color(hex: "bbbbbb")) } diff --git a/SodaLive/Sources/Live/Room/Dialog/LiveRoomProfilesDialogView.swift b/SodaLive/Sources/Live/Room/Dialog/LiveRoomProfilesDialogView.swift index 12aaf9d..4ae4bfb 100644 --- a/SodaLive/Sources/Live/Room/Dialog/LiveRoomProfilesDialogView.swift +++ b/SodaLive/Sources/Live/Room/Dialog/LiveRoomProfilesDialogView.swift @@ -150,7 +150,7 @@ struct LiveRoomProfilesDialogView: View { role: listener.role, onClickChangeListener: { _ in }, onClickInviteSpeaker: { - if viewModel.liveRoomInfo!.speakerList.count <= 9 { + if viewModel.liveRoomInfo!.speakerList.count <= 4 { viewModel.inviteSpeaker(peerId: $0) viewModel.popupContent = "스피커 요청을 보냈습니다.\n잠시만 기다려 주세요." viewModel.isShowPopup = true diff --git a/SodaLive/Sources/Live/Room/LiveRoomView.swift b/SodaLive/Sources/Live/Room/LiveRoomView.swift index e89b89a..8d1a1d3 100644 --- a/SodaLive/Sources/Live/Room/LiveRoomView.swift +++ b/SodaLive/Sources/Live/Room/LiveRoomView.swift @@ -690,7 +690,7 @@ struct LiveRoomView: View { private func inviteSpeaker(peerId: Int) { - if viewModel.liveRoomInfo!.speakerList.count <= 9 { + if viewModel.liveRoomInfo!.speakerList.count <= 4 { viewModel.inviteSpeaker(peerId: peerId) self.viewModel.popupContent = "스피커 요청을 보냈습니다.\n잠시만 기다려 주세요." self.viewModel.isShowPopup = true diff --git a/SodaLive/Sources/Live/Room/LiveRoomViewModel.swift b/SodaLive/Sources/Live/Room/LiveRoomViewModel.swift index 939d1ce..2aa96dc 100644 --- a/SodaLive/Sources/Live/Room/LiveRoomViewModel.swift +++ b/SodaLive/Sources/Live/Room/LiveRoomViewModel.swift @@ -1280,7 +1280,7 @@ extension LiveRoomViewModel: AgoraRtmDelegate { self.popupConfirmTitle = "스피커로 초대" self.popupConfirmAction = { self.isShowPopup = false - if self.liveRoomInfo!.speakerList.count <= 9 { + if self.liveRoomInfo!.speakerList.count <= 4 { self.requestSpeakerAllow(peerId) } else { self.errorMessage = "스피커 정원이 초과되었습니다."