v1.5.2/remove auto leave
This commit is contained in:
@@ -62,19 +62,6 @@ export default class Create extends Component {
|
|||||||
if (Math.abs(new Date(parseInt(lastActive)) - new Date().getTime()) <= 60000) {
|
if (Math.abs(new Date(parseInt(lastActive)) - new Date().getTime()) <= 60000) {
|
||||||
this.props.updateLoading(true);
|
this.props.updateLoading(true);
|
||||||
this.joinCall(userName, partyName, partyPin);
|
this.joinCall(userName, partyName, partyPin);
|
||||||
} else {
|
|
||||||
this.props.updateLoading(true);
|
|
||||||
const data = {
|
|
||||||
partyName: LocalData().partyName,
|
|
||||||
userUid: LocalData().userUid,
|
|
||||||
};
|
|
||||||
LeaveRoomApi(data)
|
|
||||||
.then((res) => {
|
|
||||||
this.props.updateLoading(false);
|
|
||||||
})
|
|
||||||
.catch((err) => {
|
|
||||||
this.props.updateLoading(false);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user