From 4e9d19d3b0690d324e62e379e6e8f90475b55f97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Tue, 2 Mar 2021 14:09:11 +0100 Subject: [PATCH] Pass resizeNotifier into CallViewForARoom MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/components/views/rooms/AuxPanel.tsx | 1 + src/components/views/voip/CallViewForRoom.tsx | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/components/views/rooms/AuxPanel.tsx b/src/components/views/rooms/AuxPanel.tsx index 4ce31be410..21f8369db8 100644 --- a/src/components/views/rooms/AuxPanel.tsx +++ b/src/components/views/rooms/AuxPanel.tsx @@ -169,6 +169,7 @@ export default class AuxPanel extends React.Component { roomId={this.props.room.roomId} onResize={this.props.onResize} maxVideoHeight={this.props.maxHeight} + resizeNotifier={this.props.resizeNotifier} /> ); diff --git a/src/components/views/voip/CallViewForRoom.tsx b/src/components/views/voip/CallViewForRoom.tsx index 4cb4e66fbe..7085cda21a 100644 --- a/src/components/views/voip/CallViewForRoom.tsx +++ b/src/components/views/voip/CallViewForRoom.tsx @@ -19,6 +19,7 @@ import React from 'react'; import CallHandler from '../../../CallHandler'; import CallView from './CallView'; import dis from '../../../dispatcher/dispatcher'; +import ResizeNotifier from "../../../utils/ResizeNotifier"; interface IProps { // What room we should display the call for @@ -30,6 +31,8 @@ interface IProps { // a callback which is called when the content in the callview changes // in a way that is likely to cause a resize. onResize?: any; + + resizeNotifier: ResizeNotifier, } interface IState {