Skip to content

Commit fb2af35

Browse files
authored
[Fix]Stop permission prompts on call cleanup (#951)
1 parent 6d9761a commit fb2af35

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55
# Upcoming
66

77
### 🔄 Changed
8+
- Permissions prompts won't show up when moving to background for a call that has already ended but the feedback screen is visible. [#951](https://github.com/GetStream/stream-video-swift/pull/951)
89

910
# [1.33.0](https://github.com/GetStream/stream-video-swift/releases/tag/1.33.0)
1011
_September 15, 2025_

Sources/StreamVideo/WebRTC/v2/WebRTCPermissionsAdapter.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,15 @@ final class WebRTCPermissionsAdapter: @unchecked Sendable {
155155
}
156156
}
157157

158+
func cleanUp() {
159+
processingQueue.addOperation { [weak self] in
160+
// By emptying the Set we are saying that there are no permissions
161+
// required, so when the app moves to foreground no prompts will
162+
// appear.
163+
self?.requiredPermissions = []
164+
}
165+
}
166+
158167
// MARK: - Private Helpers
159168

160169
/// Requests pending permissions when returning to foreground, if needed.

Sources/StreamVideo/WebRTC/v2/WebRTCStateAdapter.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ actor WebRTCStateAdapter: ObservableObject, StreamAudioSessionAdapterDelegate, W
355355
set(participantPins: [])
356356
trackStorage.removeAll()
357357
audioSession.deactivate()
358+
permissionsAdapter.cleanUp()
358359
}
359360

360361
/// Cleans up the session for reconnection, clearing adapters and tracks.

0 commit comments

Comments
 (0)