pull/7748/head
Karl Prieb 8 years ago
parent 02cb915734
commit c86df34822
  1. 2
      packages/rocketchat-ui-message/startup/messageBoxActions.js

@ -6,7 +6,7 @@ import {VRecDialog} from 'meteor/rocketchat:ui-vrecord';
RocketChat.messageBox.actions.add('Create_new', 'Video_message', {
icon: 'video',
condition: () => RocketChat.settings.get('FileUpload_Enabled') && RocketChat.settings.get('Message_VideoRecorderEnabled') && ((navigator.getUserMedia != null) || (navigator.webkitGetUserMedia != null)) && (!RocketChat.settings.get('FileUpload_MediaTypeWhiteList') || RocketChat.settings.get('FileUpload_MediaTypeWhiteList').match(/video\/webm|video\/\*/i)),
action({event, messageBox}) {
action({messageBox}) {
return VRecDialog.opened ? VRecDialog.close() : VRecDialog.open(messageBox);
}
});

Loading…
Cancel
Save