disable back action on android
This commit is contained in:
parent
994892abb2
commit
e0795036ee
|
@ -59,6 +59,9 @@ class JitsiMeetView extends React.Component<IJitsiMeetViewProps, IJitsiMeetViewS
|
||||||
const { route } = this.props;
|
const { route } = this.props;
|
||||||
const { userInfo } = this.state;
|
const { userInfo } = this.state;
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
this.setState({ loading: false });
|
||||||
|
}, 1000);
|
||||||
if (isIOS) {
|
if (isIOS) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const onlyAudio = route.params?.onlyAudio ?? false;
|
const onlyAudio = route.params?.onlyAudio ?? false;
|
||||||
|
@ -69,7 +72,7 @@ class JitsiMeetView extends React.Component<IJitsiMeetViewProps, IJitsiMeetViewS
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
BackHandler.addEventListener('hardwareBackPress', this.endCall);
|
BackHandler.addEventListener('hardwareBackPress', () => true);
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
|
@ -79,7 +82,7 @@ class JitsiMeetView extends React.Component<IJitsiMeetViewProps, IJitsiMeetViewS
|
||||||
this.jitsiTimeout = null;
|
this.jitsiTimeout = null;
|
||||||
BackgroundTimer.stopBackgroundTimer();
|
BackgroundTimer.stopBackgroundTimer();
|
||||||
}
|
}
|
||||||
BackHandler.removeEventListener('hardwareBackPress', this.endCall);
|
BackHandler.removeEventListener('hardwareBackPress', () => true);
|
||||||
if (isIOS) {
|
if (isIOS) {
|
||||||
JitsiMeet.endCall();
|
JitsiMeet.endCall();
|
||||||
}
|
}
|
||||||
|
@ -98,6 +101,7 @@ class JitsiMeetView extends React.Component<IJitsiMeetViewProps, IJitsiMeetViewS
|
||||||
// call is not ended and is available to web users.
|
// call is not ended and is available to web users.
|
||||||
onConferenceJoined = () => {
|
onConferenceJoined = () => {
|
||||||
logEvent(this.videoConf ? events.LIVECHAT_VIDEOCONF_JOIN : events.JM_CONFERENCE_JOIN);
|
logEvent(this.videoConf ? events.LIVECHAT_VIDEOCONF_JOIN : events.JM_CONFERENCE_JOIN);
|
||||||
|
this.setState({ loading: false });
|
||||||
if (this.rid && !this.videoConf) {
|
if (this.rid && !this.videoConf) {
|
||||||
Services.updateJitsiTimeout(this.rid).catch((e: unknown) => console.log(e));
|
Services.updateJitsiTimeout(this.rid).catch((e: unknown) => console.log(e));
|
||||||
if (this.jitsiTimeout) {
|
if (this.jitsiTimeout) {
|
||||||
|
|
Loading…
Reference in New Issue