diff --git a/app/helpers/file_type_helper.rb b/app/helpers/file_type_helper.rb index 9f6939565..4936fa155 100644 --- a/app/helpers/file_type_helper.rb +++ b/app/helpers/file_type_helper.rb @@ -9,6 +9,8 @@ module FileTypeHelper 'image/bmp' ].include?(content_type) + return :audio if content_type.include?('audio/') + :file end end diff --git a/app/javascript/dashboard/components/widgets/conversation/Message.vue b/app/javascript/dashboard/components/widgets/conversation/Message.vue index 511302a2b..cc6661867 100644 --- a/app/javascript/dashboard/components/widgets/conversation/Message.vue +++ b/app/javascript/dashboard/components/widgets/conversation/Message.vue @@ -21,8 +21,11 @@ :url="attachment.data_url" :readable-time="readableTime" /> +