mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 17:12:45 +02:00
Fix the live icon must be displayed (in grey) if the record is paused - It is hidden currently
This commit is contained in:
+12
-2
@@ -358,8 +358,18 @@ extension VoiceBroadcastPlaybackViewModel: VoiceBroadcastAggregatorDelegate {
|
||||
let broadcastState = VoiceBroadcastPlaybackViewModel.getBroadcastState(from: didReceiveState)
|
||||
state.broadcastState = broadcastState
|
||||
|
||||
if isLivePlayback, broadcastState == .paused {
|
||||
state.playbackState = .playing
|
||||
// Handle the live icon appearance
|
||||
switch broadcastState {
|
||||
case .paused:
|
||||
if state.playbackState == .playingLive {
|
||||
state.playbackState = .playing
|
||||
}
|
||||
case .live:
|
||||
if isLivePlayback, state.playbackState == .playing {
|
||||
state.playbackState = .playingLive
|
||||
}
|
||||
default:
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user