From 39fe72e53ad6aa7cc723595d5d0d3662329ee785 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Mon, 6 Feb 2023 13:15:20 +0100 Subject: [PATCH] Fix broadcast pip seekbar (#10072) --- src/components/structures/PipContainer.tsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/components/structures/PipContainer.tsx b/src/components/structures/PipContainer.tsx index 416458e6ff..7bbbb1c568 100644 --- a/src/components/structures/PipContainer.tsx +++ b/src/components/structures/PipContainer.tsx @@ -258,17 +258,16 @@ class PipContainerInner extends React.Component { } private createVoiceBroadcastPlaybackPipContent(voiceBroadcastPlayback: VoiceBroadcastPlayback): CreatePipChildren { - if (this.state.viewedRoomId === voiceBroadcastPlayback.infoEvent.getRoomId()) { - return ({ onStartMoving }) => ( -
- -
+ const content = + this.state.viewedRoomId === voiceBroadcastPlayback.infoEvent.getRoomId() ? ( + + ) : ( + ); - } return ({ onStartMoving }) => ( -
- +
+ {content}
); }