fix(android): enforce single active player in chat timeline
This commit is contained in:
@@ -763,6 +763,10 @@ fun ChatScreen(
|
||||
},
|
||||
onAudioPlaybackChanged = { playback ->
|
||||
if (playback.isPlaying) {
|
||||
val previous = topAudioStrip?.sourceId
|
||||
if (!previous.isNullOrBlank() && previous != playback.sourceId) {
|
||||
forceStopAudioSourceId = previous
|
||||
}
|
||||
topAudioStrip = playback
|
||||
if (forceStopAudioSourceId == playback.sourceId) {
|
||||
forceStopAudioSourceId = null
|
||||
|
||||
Reference in New Issue
Block a user