mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 09:46:09 +03:00
Use unique keys for voice broadcast pips (#10457)
This commit is contained in:
parent
d33e416fc7
commit
b0de7b3bb6
1 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
);
|
||||
|
@ -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>
|
||||
);
|
||||
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue