Skip to content
Snippets Groups Projects
Commit 29af18a7 authored by Ed's avatar Ed
Browse files

Hide recorder if uploads are disabled

parent 783d4796
No related branches found
No related tags found
No related merge requests found
...@@ -190,7 +190,7 @@ Template.room.helpers ...@@ -190,7 +190,7 @@ Template.room.helpers
canRecordAudio: -> canRecordAudio: ->
wavRegex = /audio\/wav|audio\/\*/i wavRegex = /audio\/wav|audio\/\*/i
wavEnabled = RocketChat.settings.get("FileUpload_MediaTypeWhiteList").match(wavRegex) wavEnabled = RocketChat.settings.get("FileUpload_MediaTypeWhiteList").match(wavRegex)
return RocketChat.settings.get('Message_AudioRecorderEnabled') and (navigator.getUserMedia? or navigator.webkitGetUserMedia?) and wavEnabled return RocketChat.settings.get('Message_AudioRecorderEnabled') and (navigator.getUserMedia? or navigator.webkitGetUserMedia?) and wavEnabled and RocketChat.settings.get('FileUpload_Enabled')
unreadSince: -> unreadSince: ->
room = ChatRoom.findOne(this._id, { reactive: false }) room = ChatRoom.findOne(this._id, { reactive: false })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment