diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 5401cd6e12..c5bf465a0c 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -998,6 +998,13 @@ module.exports = React.createClass({ } }, + onFullscreenClick: function() { + dis.dispatch({ + action: 'video_fullscreen', + fullscreen: true + }, true); + }, + onMuteAudioClick: function() { var call = CallHandler.getCallForRoom(this.props.roomId); if (!call) { @@ -1204,17 +1211,22 @@ module.exports = React.createClass({ var inCall = false; if (call && this.state.callState != 'ended') { inCall = true; - //var muteVideoButton; - var voiceMuteButton, videoMuteButton; + var zoomButton, voiceMuteButton, videoMuteButton; if (call.type === "video") { + zoomButton = ( +
+ Fill screen +
+ ); + videoMuteButton = -
+
} voiceMuteButton = -
+
@@ -1230,6 +1242,7 @@ module.exports = React.createClass({
{ voiceMuteButton } { videoMuteButton } + { zoomButton } { statusBar }
diff --git a/src/components/views/rooms/RoomHeader.js b/src/components/views/rooms/RoomHeader.js index e410d7c6e4..068dff85d6 100644 --- a/src/components/views/rooms/RoomHeader.js +++ b/src/components/views/rooms/RoomHeader.js @@ -66,10 +66,6 @@ module.exports = React.createClass({ getRoomName: function() { return this.refs.name_edit.value; }, - - onFullscreenClick: function() { - dis.dispatch({action: 'video_fullscreen', fullscreen: true}, true); - }, render: function() { var EditableText = sdk.getComponent("elements.EditableText");