Increase sample count in voice message thumbnail
Fixes https://github.com/vector-im/element-web/issues/17817 Technically requires https://github.com/matrix-org/matrix-react-sdk/pull/6357 for sample sizing.
This commit is contained in:
parent
1b39dbdb53
commit
4c98c0bc23
2 changed files with 11 additions and 1 deletions
|
@ -95,7 +95,7 @@ export default class VoiceRecordComposerTile extends React.PureComponent<IProps,
|
|||
duration: Math.round(this.state.recorder.durationSeconds * 1000),
|
||||
|
||||
// https://github.com/matrix-org/matrix-doc/pull/3246
|
||||
waveform: this.state.recorder.getPlayback().waveform.map(v => Math.round(v * 1024)),
|
||||
waveform: this.state.recorder.getPlayback().waveformThumbnail.map(v => Math.round(v * 1024)),
|
||||
},
|
||||
"org.matrix.msc3245.voice": {}, // No content, this is a rendering hint
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue