diff --git a/src/components/views/voip/VideoFeed.tsx b/src/components/views/voip/VideoFeed.tsx index 8ed4a4a44c..b1b272c0a2 100644 --- a/src/components/views/voip/VideoFeed.tsx +++ b/src/components/views/voip/VideoFeed.tsx @@ -73,6 +73,13 @@ export default class VideoFeed extends React.Component { this.updateFeed(prevProps.feed, this.props.feed); } + static getDerivedStateFromProps(props: IProps) { + return { + audioMuted: props.feed.isAudioMuted(), + videoMuted: props.feed.isVideoMuted(), + }; + } + private updateFeed(oldFeed: CallFeed, newFeed: CallFeed) { if (oldFeed === newFeed) return;