From 5d1ad4d259d3af6f3d62fb3ba92116fd06d39f28 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Wed, 21 Oct 2015 01:22:29 +0100 Subject: [PATCH] only show the zoom button on video calls --- src/skins/vector/views/molecules/RoomHeader.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/skins/vector/views/molecules/RoomHeader.js b/src/skins/vector/views/molecules/RoomHeader.js index deecc5fb..de6aea15 100644 --- a/src/skins/vector/views/molecules/RoomHeader.js +++ b/src/skins/vector/views/molecules/RoomHeader.js @@ -93,12 +93,6 @@ module.exports = React.createClass({ End call ); - - zoom_button = ( -
- Fullscreen -
- ); } var name = null; @@ -136,6 +130,14 @@ module.exports = React.createClass({ ); } + if (activeCall && activeCall.type == "video") { + zoom_button = ( +
+ Fullscreen +
+ ); + } + header =