diff --git a/client/views/app/room.coffee b/client/views/app/room.coffee index a3e30778731..a005cb3af08 100644 --- a/client/views/app/room.coffee +++ b/client/views/app/room.coffee @@ -188,7 +188,9 @@ Template.room.helpers return !! ChatRoom.findOne { _id: @_id, t: 'c' } canRecordAudio: -> - return RocketChat.settings.get('Message_AudioRecorderEnabled') and (navigator.getUserMedia? or navigator.webkitGetUserMedia?) + wavRegex = /audio\/wav|audio\/\*/i + wavEnabled = RocketChat.settings.get("FileUpload_MediaTypeWhiteList").match(wavRegex) + return RocketChat.settings.get('Message_AudioRecorderEnabled') and (navigator.getUserMedia? or navigator.webkitGetUserMedia?) and wavEnabled unreadSince: -> room = ChatRoom.findOne(this._id, { reactive: false })