Skip to content

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

ref(PiP/actions): remove 'is ok to enter PiP' check

paweldomas17ae89a56c11
diff --git a/react/features/mobile/picture-in-picture/actions.js b/react/features/mobile/picture-in-picture/actions.js
index 6386ad9c00..913e911203 100644
--- a/react/features/mobile/picture-in-picture/actions.js
+++ b/react/features/mobile/picture-in-picture/actions.js
@@ -21,14 +21,10 @@ export function enterPictureInPicture() {
const state = getState();
const { app } = state['features/app'];
- // FIXME We want to be able to enter Picture-in-Picture as soon as we
- // are on the Conference page i.e. even before `joining` was set in the
- // reducer.
- const { conference, joining } = state['features/base/conference'];
-
- if (app
- && app.props.pictureInPictureEnabled
- && (conference || joining)) {
+ // XXX At the time of this writing this action can only be dispatched by
+ // the button which is on the conference view, which means that it's
+ // fine to enter PiP mode.
+ if (app && app.props.pictureInPictureEnabled) {
const { PictureInPicture } = NativeModules;
const p
= Platform.OS === 'android'