feat(live-room): 라이브 캡쳐 녹화 허용 설정을 생성 시청 흐름에 반영한다

This commit is contained in:
Yu Sung
2026-03-30 21:49:34 +09:00
parent 3a4df173d2
commit 178e0849dc
8 changed files with 97 additions and 3 deletions

View File

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