1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-08-09 08:42:50 +03:00

Extract createVoiceMessageContent (#9322)

This commit is contained in:
Michael Weimann
2022-09-29 21:06:49 +02:00
committed by GitHub
parent 3e076c8246
commit 7a33818bd7
5 changed files with 143 additions and 33 deletions

View File

@@ -57,7 +57,7 @@ describe("<VoiceRecordComposerTile/>", () => {
durationSeconds: 1337,
contentType: "audio/ogg",
getPlayback: () => ({
thumbnailWaveform: [],
thumbnailWaveform: [1.4, 2.5, 3.6],
}),
} as unknown as VoiceRecording;
voiceRecordComposerTile = mount(<VoiceRecordComposerTile {...props} />);
@@ -88,7 +88,11 @@ describe("<VoiceRecordComposerTile/>", () => {
"msgtype": MsgType.Audio,
"org.matrix.msc1767.audio": {
"duration": 1337000,
"waveform": [],
"waveform": [
1434,
2560,
3686,
],
},
"org.matrix.msc1767.file": {
"file": undefined,