Extract voice broadcast header (#9393)

This commit is contained in:
Michael Weimann 2022-10-12 16:00:37 +02:00 committed by GitHub
parent 19bc3f1d9a
commit 533eda2273
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 318 additions and 79 deletions

View file

@ -46,13 +46,10 @@ export const VoiceBroadcastBody: React.FC<IBodyProps> = ({ mxEvent }) => {
recording.stop();
};
const senderId = mxEvent.getSender();
const sender = mxEvent.sender;
return <VoiceBroadcastRecordingBody
onClick={stopVoiceBroadcast}
live={recordingState === VoiceBroadcastInfoState.Started}
member={sender}
userId={senderId}
title={`${sender?.name ?? senderId}${room.name}`}
sender={mxEvent.sender}
roomName={room.name}
/>;
};