feat(live-room): 라이브 캡쳐 녹화 허용 설정을 생성 시청 흐름에 반영한다
This commit is contained in:
@@ -80,7 +80,15 @@ struct LiveRoomViewV2: View {
|
||||
}
|
||||
|
||||
private var shouldEnforceScreenCaptureProtection: Bool {
|
||||
!(isCurrentUserHost || isCurrentUserStaff)
|
||||
guard let liveRoomInfo = viewModel.liveRoomInfo else {
|
||||
return true
|
||||
}
|
||||
|
||||
if liveRoomInfo.isCaptureRecordingAvailable == true {
|
||||
return false
|
||||
}
|
||||
|
||||
return !(isCurrentUserHost || isCurrentUserStaff)
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
@@ -956,6 +964,9 @@ struct LiveRoomViewV2: View {
|
||||
.onChange(of: viewModel.liveRoomInfo?.managerList) { _ in
|
||||
syncScreenCaptureProtectionState()
|
||||
}
|
||||
.onChange(of: viewModel.liveRoomInfo?.isCaptureRecordingAvailable) { _ in
|
||||
syncScreenCaptureProtectionState()
|
||||
}
|
||||
.onChange(of: viewModel.isChatFrozenForCurrentUser) { isFrozen in
|
||||
if isFrozen {
|
||||
hideKeyboard()
|
||||
|
||||
Reference in New Issue
Block a user