2022-09-30 03:06:49 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`createVoiceMessageContent should create a voice message content 1`] = `
|
2022-11-04 18:48:08 +08:00
|
|
|
{
|
2022-09-30 03:06:49 +08:00
|
|
|
"body": "Voice message",
|
2022-11-04 18:48:08 +08:00
|
|
|
"file": {},
|
|
|
|
"info": {
|
2022-09-30 03:06:49 +08:00
|
|
|
"duration": 23000,
|
|
|
|
"mimetype": "ogg/opus",
|
|
|
|
"size": 42000,
|
|
|
|
},
|
|
|
|
"msgtype": "m.audio",
|
2022-11-04 18:48:08 +08:00
|
|
|
"org.matrix.msc1767.audio": {
|
2022-09-30 03:06:49 +08:00
|
|
|
"duration": 23000,
|
2022-11-04 18:48:08 +08:00
|
|
|
"waveform": [
|
2022-09-30 03:06:49 +08:00
|
|
|
1,
|
|
|
|
2,
|
|
|
|
3,
|
|
|
|
],
|
|
|
|
},
|
2022-11-04 18:48:08 +08:00
|
|
|
"org.matrix.msc1767.file": {
|
|
|
|
"file": {},
|
2022-09-30 03:06:49 +08:00
|
|
|
"mimetype": "ogg/opus",
|
|
|
|
"name": "Voice message.ogg",
|
|
|
|
"size": 42000,
|
|
|
|
"url": "mxc://example.com/file",
|
|
|
|
},
|
|
|
|
"org.matrix.msc1767.text": "Voice message",
|
2022-11-04 18:48:08 +08:00
|
|
|
"org.matrix.msc3245.voice": {},
|
2022-09-30 03:06:49 +08:00
|
|
|
"url": "mxc://example.com/file",
|
|
|
|
}
|
|
|
|
`;
|