We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4bea06 commit 5b16e73Copy full SHA for 5b16e73
client/views/app/room.coffee
@@ -188,7 +188,9 @@ Template.room.helpers
188
return !! ChatRoom.findOne { _id: @_id, t: 'c' }
189
190
canRecordAudio: ->
191
- return RocketChat.settings.get('Message_AudioRecorderEnabled') and (navigator.getUserMedia? or navigator.webkitGetUserMedia?)
+ wavRegex = /audio\/wav|audio\/\*/i
192
+ wavEnabled = RocketChat.settings.get("FileUpload_MediaTypeWhiteList").match(wavRegex)
193
+ return RocketChat.settings.get('Message_AudioRecorderEnabled') and (navigator.getUserMedia? or navigator.webkitGetUserMedia?) and wavEnabled
194
195
unreadSince: ->
196
room = ChatRoom.findOne(this._id, { reactive: false })
0 commit comments