diff --git a/SodaLive/Sources/Live/Room/LiveRoomView.swift b/SodaLive/Sources/Live/Room/LiveRoomView.swift index f827154..0ec6839 100644 --- a/SodaLive/Sources/Live/Room/LiveRoomView.swift +++ b/SodaLive/Sources/Live/Room/LiveRoomView.swift @@ -784,26 +784,28 @@ struct LiveRoomView: View { viewModel.isShowDonationRankingPopup = true } - HStack(spacing: 0) { - Text("참여자") - .font(.custom(Font.medium.rawValue, size: 12)) - .foregroundColor(Color(hex: "bbbbbb")) - - Text("\(liveRoomInfo.participantsCount)") - .font(.custom(Font.medium.rawValue, size: 12)) - .foregroundColor(Color(hex: "9970ff")) - .padding(.leading, 6.7) - } - .padding(.horizontal, 11.5) - .padding(.vertical, 7.3) - .overlay( - RoundedRectangle(cornerRadius: 12.8) - .strokeBorder(lineWidth: 1) - .foregroundColor(Color(hex: "eeeeee")) - ) - .contentShape(Rectangle()) - .onTapGesture { - viewModel.isShowProfileList = true + if liveRoomInfo.creatorId == UserDefaults.int(forKey: .userId) { + HStack(spacing: 0) { + Text("참여자") + .font(.custom(Font.medium.rawValue, size: 12)) + .foregroundColor(Color(hex: "bbbbbb")) + + Text("\(liveRoomInfo.participantsCount)") + .font(.custom(Font.medium.rawValue, size: 12)) + .foregroundColor(Color(hex: "9970ff")) + .padding(.leading, 6.7) + } + .padding(.horizontal, 11.5) + .padding(.vertical, 7.3) + .overlay( + RoundedRectangle(cornerRadius: 12.8) + .strokeBorder(lineWidth: 1) + .foregroundColor(Color(hex: "eeeeee")) + ) + .contentShape(Rectangle()) + .onTapGesture { + viewModel.isShowProfileList = true + } } } .padding(.top, 13.3)