This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
src/components/structures Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -258,17 +258,16 @@ class PipContainerInner extends React.Component<IProps, IState> {
258
258
}
259
259
260
260
private createVoiceBroadcastPlaybackPipContent ( voiceBroadcastPlayback : VoiceBroadcastPlayback ) : CreatePipChildren {
261
- if ( this . state . viewedRoomId === voiceBroadcastPlayback . infoEvent . getRoomId ( ) ) {
262
- return ( { onStartMoving } ) => (
263
- < div onMouseDown = { onStartMoving } >
264
- < VoiceBroadcastPlaybackBody playback = { voiceBroadcastPlayback } pip = { true } />
265
- </ div >
261
+ const content =
262
+ this . state . viewedRoomId === voiceBroadcastPlayback . infoEvent . getRoomId ( ) ? (
263
+ < VoiceBroadcastPlaybackBody playback = { voiceBroadcastPlayback } pip = { true } / >
264
+ ) : (
265
+ < VoiceBroadcastSmallPlaybackBody playback = { voiceBroadcastPlayback } / >
266
266
) ;
267
- }
268
267
269
268
return ( { onStartMoving } ) => (
270
- < div onMouseDown = { onStartMoving } >
271
- < VoiceBroadcastSmallPlaybackBody playback = { voiceBroadcastPlayback } />
269
+ < div key = { voiceBroadcastPlayback . infoEvent . getId ( ) } onMouseDown = { onStartMoving } >
270
+ { content }
272
271
</ div >
273
272
) ;
274
273
}
You can’t perform that action at this time.
0 commit comments