From d2d258c7a14f5f5503a0d49452943aac58ab9c6e Mon Sep 17 00:00:00 2001 From: Ayushya Amitabh Date: Mon, 20 Jul 2020 15:53:33 -0400 Subject: [PATCH] v1.4.3/release (clean up criteria, titles, color for self) --- app/src/Chat.js | 11 ++++++++--- functions/modules/scheduledCleanUp.js | 5 ++++- website/copyright/index.html | 2 +- website/welcome/index.html | 2 +- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/app/src/Chat.js b/app/src/Chat.js index ca513cf..9225d79 100644 --- a/app/src/Chat.js +++ b/app/src/Chat.js @@ -71,7 +71,6 @@ import Create from './Create'; import { goTo } from 'route-lite'; import CallManager from './CallManager'; import VideoListener from './VideoListener'; -import VoxeetSDK from '@voxeet/voxeet-web-sdk'; const giphyFetch = new GiphyFetch('ojJbIMUN6XRMn4mHiFFav3rMCpXUg8sq'); const alerts = [ @@ -354,6 +353,7 @@ export default class Chat extends Component { rowsMax={2} variant="outlined" fullWidth + color="secondary" InputProps={{ endAdornment: ( @@ -409,17 +409,22 @@ export default class Chat extends Component { ))} - {VoxeetSDK.conference.participants.size > 0 ? ( + {Object.keys(usersOnCall).length > 0 ? ( MEMBERS IN CALL ) : null} - {VoxeetSDK.conference.participants.size > 0 ? ( + {Object.keys(usersOnCall).length > 0 ? (
{Object.keys(usersOnCall).map((id) => { return usersOnCall[id].status === 'Connected' || usersOnCall[id].status === 'Connecting' ? ( { .get() .then(async (roomSnap) => { if ( - timeDiff(roomSnap.createTime.toDate(), startedTime) >= 24 || + // MORE THAN 24 HOURS AND NOT IN USE + (timeDiff(roomSnap.createTime.toDate(), startedTime) >= 24 && + timeDiff(roomSnap.updateTime.toDate(), startedTime) >= 12) || + // LESS THAN 24 HOURS BUT NOT IN USE timeDiff(roomSnap.updateTime.toDate(), startedTime) >= 12 ) { await cleanUpRoom(roomSnap.id); diff --git a/website/copyright/index.html b/website/copyright/index.html index e5ef7e6..be29525 100644 --- a/website/copyright/index.html +++ b/website/copyright/index.html @@ -37,7 +37,7 @@ HBO Now and HBO Max logos are trademark and intellectual property of WarnerMedia - Watch Party + Watch Party | Copyright
diff --git a/website/welcome/index.html b/website/welcome/index.html index 411f6cb..f48f5c2 100644 --- a/website/welcome/index.html +++ b/website/welcome/index.html @@ -37,7 +37,7 @@ HBO Now and HBO Max logos are trademark and intellectual property of WarnerMedia - Watch Party + Watch Party | Welcome