File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ module.exports = React.createClass({
3434 render : function ( ) {
3535 var VideoView = sdk . getComponent ( 'molecules.voip.VideoView' ) ;
3636 return (
37- < VideoView ref = "video" />
37+ < VideoView ref = "video" onClick = { this . props . onClick } />
3838 ) ;
3939 }
4040} ) ;
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ module.exports = React.createClass({
7878 render : function ( ) {
7979 var VideoFeed = sdk . getComponent ( 'atoms.voip.VideoFeed' ) ;
8080 return (
81- < div className = "mx_VideoView" ref = { this . setContainer } >
81+ < div className = "mx_VideoView" ref = { this . setContainer } onClick = { this . props . onClick } >
8282 < div className = "mx_VideoView_remoteVideoFeed" >
8383 < VideoFeed ref = "remote" />
8484 < audio ref = "remoteAudio" />
Original file line number Diff line number Diff line change @@ -71,6 +71,16 @@ module.exports = React.createClass({
7171 } ) ;
7272 } ,
7373
74+ onCallViewClick : function ( ) {
75+ var call = CallHandler . getAnyActiveCall ( ) ;
76+ if ( call ) {
77+ dis . dispatch ( {
78+ action : 'view_room' ,
79+ room_id : call . roomId ,
80+ } ) ;
81+ }
82+ } ,
83+
7484 render : function ( ) {
7585 var RoomList = sdk . getComponent ( 'organisms.RoomList' ) ;
7686 var BottomLeftMenu = sdk . getComponent ( 'molecules.BottomLeftMenu' ) ;
@@ -89,7 +99,7 @@ module.exports = React.createClass({
8999 var callPreview ;
90100 if ( this . state . showCallElement ) {
91101 var CallView = sdk . getComponent ( 'molecules.voip.CallView' ) ;
92- callPreview = < CallView className = "mx_LeftPanel_callView" />
102+ callPreview = < CallView className = "mx_LeftPanel_callView" onClick = { this . onCallViewClick } />
93103 }
94104
95105 return (
You can’t perform that action at this time.
0 commit comments