라이브 방 - 스피커 최대 10 -> 5명으로 수정

This commit is contained in:
Yu Sung 2023-08-21 05:38:53 +09:00
parent 5301aebe71
commit c5fdfcafda
4 changed files with 4 additions and 4 deletions

View File

@ -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"))
}

View File

@ -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

View File

@ -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

View File

@ -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 = "스피커 정원이 초과되었습니다."