Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix: avoid false triggering CDU in SlidingView

Bettenbuk Zoltan0e6f14bb7c9b
diff --git a/react/features/base/react/components/native/SlidingView.js b/react/features/base/react/components/native/SlidingView.js
index 6a2305b839..e8f5ebd89a 100644
--- a/react/features/base/react/components/native/SlidingView.js
+++ b/react/features/base/react/components/native/SlidingView.js
@@ -128,8 +128,12 @@ export default class SlidingView extends PureComponent<Props, State> {
*
* @inheritdoc
*/
- componentDidUpdate() {
- this._setShow(this.props.show);
+ componentDidUpdate(prevProps: Props) {
+ const { show } = this.props;
+
+ if (prevProps.show !== show) {
+ this._setShow(show);
+ }
}
/**