1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-12-23 21:02:09 +03:00

Do not resume voice broadcasts on seek (#9686)

This commit is contained in:
Michael Weimann
2022-12-05 09:43:47 +01:00
committed by GitHub
parent 2d9fa81cf5
commit f117548b38
2 changed files with 12 additions and 1 deletions

View File

@@ -387,7 +387,7 @@ export class VoiceBroadcastPlayback
const offsetInChunk = time - this.chunkEvents.getLengthTo(event);
await skipToPlayback.skipTo(offsetInChunk / 1000);
if (currentPlayback !== skipToPlayback) {
if (this.state === VoiceBroadcastPlaybackState.Playing && !skipToPlayback.isPlaying) {
await skipToPlayback.play();
}