diff options
author | Marco Ambrosini <marcoambrosini@pm.me> | 2021-05-27 14:09:25 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-06-11 15:07:09 +0200 |
commit | ad5dd21338abcb2b86a9cdbc159f7b0e321a9f23 (patch) | |
tree | bb08c0dd1cc75012615b4c02c8b998cafbd0c63e /src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue | |
parent | 8926e3e6d24316ba2bc4e1b793572d3e26907b48 (diff) |
Display audio elements in the message list
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
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, 7 insertions, 0 deletions
diff --git a/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue b/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue index b013d62d0..b0902b91b 100644 --- a/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue +++ b/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue @@ -78,6 +78,7 @@ import Close from 'vue-material-design-icons/Close' import PlayCircleOutline from 'vue-material-design-icons/PlayCircleOutline' import { getCapabilities } from '@nextcloud/capabilities' import { encodePath } from '@nextcloud/paths' +import AudioPlayer from './AudioPlayer' const PREVIEW_TYPE = { TEMPORARY: 0, @@ -236,6 +237,12 @@ export default { is: 'div', tag: 'div', } + } else if (this.mimetype.startsWith('audio')) { + return { + is: AudioPlayer, + name: this.name, + path: this.path, + } } return { is: 'a', |