From a06cc15040f64b15f177125ae01766f32f630d91 Mon Sep 17 00:00:00 2001 From: Ayushya Amitabh Date: Sat, 25 Jul 2020 23:09:34 -0400 Subject: [PATCH] v1.5.2/remove auto leave --- app/src/Create.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/app/src/Create.js b/app/src/Create.js index 1818023..13ecd3a 100644 --- a/app/src/Create.js +++ b/app/src/Create.js @@ -62,19 +62,6 @@ export default class Create extends Component { if (Math.abs(new Date(parseInt(lastActive)) - new Date().getTime()) <= 60000) { this.props.updateLoading(true); 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); - }); } } }