Bug 1126289 - Enable screen sharing for Loop link-generators by default. r=mikedeboer
This commit is contained in:
@@ -42,8 +42,7 @@ loop.conversation = (function(mozL10n) {
|
||||
conversationStore: React.PropTypes.instanceOf(loop.store.ConversationStore)
|
||||
.isRequired,
|
||||
dispatcher: React.PropTypes.instanceOf(loop.Dispatcher).isRequired,
|
||||
roomStore: React.PropTypes.instanceOf(loop.store.RoomStore),
|
||||
mozLoop: React.PropTypes.object.isRequired,
|
||||
roomStore: React.PropTypes.instanceOf(loop.store.RoomStore)
|
||||
},
|
||||
|
||||
getInitialState: function() {
|
||||
@@ -79,7 +78,6 @@ loop.conversation = (function(mozL10n) {
|
||||
case "room": {
|
||||
return (React.createElement(DesktopRoomConversationView, {
|
||||
dispatcher: this.props.dispatcher,
|
||||
mozLoop: this.props.mozLoop,
|
||||
roomStore: this.props.roomStore}
|
||||
));
|
||||
}
|
||||
@@ -190,8 +188,7 @@ loop.conversation = (function(mozL10n) {
|
||||
client: client,
|
||||
conversation: conversation,
|
||||
dispatcher: dispatcher,
|
||||
sdk: window.OT,
|
||||
mozLoop: navigator.mozLoop}
|
||||
sdk: window.OT}
|
||||
), document.querySelector('#main'));
|
||||
|
||||
dispatcher.dispatch(new sharedActions.GetWindowData({
|
||||
|
||||
@@ -42,8 +42,7 @@ loop.conversation = (function(mozL10n) {
|
||||
conversationStore: React.PropTypes.instanceOf(loop.store.ConversationStore)
|
||||
.isRequired,
|
||||
dispatcher: React.PropTypes.instanceOf(loop.Dispatcher).isRequired,
|
||||
roomStore: React.PropTypes.instanceOf(loop.store.RoomStore),
|
||||
mozLoop: React.PropTypes.object.isRequired,
|
||||
roomStore: React.PropTypes.instanceOf(loop.store.RoomStore)
|
||||
},
|
||||
|
||||
getInitialState: function() {
|
||||
@@ -79,7 +78,6 @@ loop.conversation = (function(mozL10n) {
|
||||
case "room": {
|
||||
return (<DesktopRoomConversationView
|
||||
dispatcher={this.props.dispatcher}
|
||||
mozLoop={this.props.mozLoop}
|
||||
roomStore={this.props.roomStore}
|
||||
/>);
|
||||
}
|
||||
@@ -191,7 +189,6 @@ loop.conversation = (function(mozL10n) {
|
||||
conversation={conversation}
|
||||
dispatcher={dispatcher}
|
||||
sdk={window.OT}
|
||||
mozLoop={navigator.mozLoop}
|
||||
/>, document.querySelector('#main'));
|
||||
|
||||
dispatcher.dispatch(new sharedActions.GetWindowData({
|
||||
|
||||
@@ -170,8 +170,7 @@ loop.roomViews = (function(mozL10n) {
|
||||
],
|
||||
|
||||
propTypes: {
|
||||
dispatcher: React.PropTypes.instanceOf(loop.Dispatcher).isRequired,
|
||||
mozLoop: React.PropTypes.object.isRequired,
|
||||
dispatcher: React.PropTypes.instanceOf(loop.Dispatcher).isRequired
|
||||
},
|
||||
|
||||
_renderInvitationOverlay: function() {
|
||||
@@ -243,7 +242,7 @@ loop.roomViews = (function(mozL10n) {
|
||||
|
||||
var screenShareData = {
|
||||
state: this.state.screenSharingState,
|
||||
visible: this.props.mozLoop.getLoopPref("screenshare.enabled")
|
||||
visible: true
|
||||
};
|
||||
|
||||
switch(this.state.roomState) {
|
||||
|
||||
@@ -170,8 +170,7 @@ loop.roomViews = (function(mozL10n) {
|
||||
],
|
||||
|
||||
propTypes: {
|
||||
dispatcher: React.PropTypes.instanceOf(loop.Dispatcher).isRequired,
|
||||
mozLoop: React.PropTypes.object.isRequired,
|
||||
dispatcher: React.PropTypes.instanceOf(loop.Dispatcher).isRequired
|
||||
},
|
||||
|
||||
_renderInvitationOverlay: function() {
|
||||
@@ -243,7 +242,7 @@ loop.roomViews = (function(mozL10n) {
|
||||
|
||||
var screenShareData = {
|
||||
state: this.state.screenSharingState,
|
||||
visible: this.props.mozLoop.getLoopPref("screenshare.enabled")
|
||||
visible: true
|
||||
};
|
||||
|
||||
switch(this.state.roomState) {
|
||||
|
||||
Reference in New Issue
Block a user