스피커 요청 버튼 제거

This commit is contained in:
Yu Sung
2023-08-28 23:13:43 +09:00
parent 3916a49e60
commit 88fcbc98f4
3 changed files with 20 additions and 41 deletions

View File

@@ -422,15 +422,6 @@ final class LiveRoomViewModel: NSObject, ObservableObject {
.store(in: &subscription)
}
func requestSpeaker() {
agora.sendMessageToPeer(peerId: String(liveRoomInfo!.creatorId), rawMessage: LiveRoomRequestType.REQUEST_SPEAKER.rawValue.data(using: .utf8)!, completion: { [unowned self] errorCode in
if errorCode == .ok {
self.popupContent = "스피커 요청을 보냈습니다.\n잠시만 기다려 주세요."
self.isShowPopup = true
}
})
}
func inviteSpeaker(peerId: Int) {
agora.sendMessageToPeer(peerId: String(peerId), rawMessage: LiveRoomRequestType.INVITE_SPEAKER.rawValue.data(using: .utf8)!, completion: { [unowned self] errorCode in
if errorCode == .ok {