diff options
author | Joas Schilling <coding@schilljs.com> | 2021-07-01 16:15:53 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-07-01 16:15:53 +0200 |
commit | 244023ee9a3537f5f269dc3bd8bc8cd089c82af2 (patch) | |
tree | 0e087de1d5793d01b35d28793f9b6ee8785475b6 /src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue | |
parent | 39a929e20dd97f24d2aa9a997b24e268e1a9abdd (diff) |
Only show the inline player for voice-messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue')
-rw-r--r-- | src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue b/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue index 68f9a6dbc..f456c6813 100644 --- a/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue +++ b/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue @@ -197,6 +197,11 @@ export default { type: String, default: '', }, + + isVoiceMessage: { + type: Boolean, + default: false, + }, }, data() { return { @@ -244,7 +249,7 @@ export default { is: 'div', tag: 'div', } - } else if (this.mimetype.startsWith('audio')) { + } else if (this.isVoiceMessage) { return { is: AudioPlayer, name: this.name, |