move live recording logic down the component tree

This commit is contained in:
Germain Souquet 2021-06-24 09:58:11 +01:00
parent 56467485f5
commit 21caa6df12
4 changed files with 115 additions and 13 deletions

View file

@ -227,8 +227,8 @@ export default class VoiceRecordComposerTile extends React.PureComponent<IProps,
// only other UI is the recording-in-progress UI
return <div className="mx_VoiceMessagePrimaryContainer mx_VoiceRecordComposerTile_recording">
<LiveRecordingClock seconds={this.state.seconds} />
<LiveRecordingWaveform relHeights={this.state.relHeights} />
<LiveRecordingClock recorder={this.state.recorder} />
<LiveRecordingWaveform recorder={this.state.recorder} />
</div>;
}