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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 143 additions and 33 deletions

View file

@ -0,0 +1,32 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`createVoiceMessageContent should create a voice message content 1`] = `
Object {
"body": "Voice message",
"file": Object {},
"info": Object {
"duration": 23000,
"mimetype": "ogg/opus",
"size": 42000,
},
"msgtype": "m.audio",
"org.matrix.msc1767.audio": Object {
"duration": 23000,
"waveform": Array [
1,
2,
3,
],
},
"org.matrix.msc1767.file": Object {
"file": Object {},
"mimetype": "ogg/opus",
"name": "Voice message.ogg",
"size": 42000,
"url": "mxc://example.com/file",
},
"org.matrix.msc1767.text": "Voice message",
"org.matrix.msc3245.voice": Object {},
"url": "mxc://example.com/file",
}
`;