Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Use unique keys for voice broadcast pips #10457

Merged
merged 3 commits into from
Mar 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/structures/PipContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class PipContainerInner extends React.Component<IProps, IState> {
);

return ({ onStartMoving }) => (
<div key={voiceBroadcastPlayback.infoEvent.getId()} onMouseDown={onStartMoving}>
<div key={`vb-playback-${voiceBroadcastPlayback.infoEvent.getId()}`} onMouseDown={onStartMoving}>
{content}
</div>
);
Expand All @@ -272,7 +272,7 @@ class PipContainerInner extends React.Component<IProps, IState> {
voiceBroadcastPreRecording: VoiceBroadcastPreRecording,
): CreatePipChildren {
return ({ onStartMoving }) => (
<div onMouseDown={onStartMoving}>
<div key="vb-pre-recording" onMouseDown={onStartMoving}>
<VoiceBroadcastPreRecordingPip voiceBroadcastPreRecording={voiceBroadcastPreRecording} />
</div>
);
Expand All @@ -282,7 +282,7 @@ class PipContainerInner extends React.Component<IProps, IState> {
voiceBroadcastRecording: VoiceBroadcastRecording,
): CreatePipChildren {
return ({ onStartMoving }) => (
<div onMouseDown={onStartMoving}>
<div key={`vb-recording-${voiceBroadcastRecording.infoEvent.getId()}`} onMouseDown={onStartMoving}>
<VoiceBroadcastRecordingPip recording={voiceBroadcastRecording} />
</div>
);
Expand Down