mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 12:49:06 +00:00
self-pr review
This commit is contained in:
@@ -56,9 +56,9 @@ export default function MeetingSelection({
|
|||||||
const allMeetings = activeMeetingsQuery.data || [];
|
const allMeetings = activeMeetingsQuery.data || [];
|
||||||
|
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
const [currentMeetings, upcomingMeetings] = R.pipe(
|
const [currentMeetings, upcomingMeetings] = R.partition(
|
||||||
allMeetings,
|
allMeetings,
|
||||||
R.partition((meeting) => {
|
(meeting) => {
|
||||||
const startTime = new Date(meeting.start_date);
|
const startTime = new Date(meeting.start_date);
|
||||||
// Meeting is ongoing if it started and participants have joined or it's been running for a while
|
// Meeting is ongoing if it started and participants have joined or it's been running for a while
|
||||||
return (
|
return (
|
||||||
@@ -66,7 +66,7 @@ export default function MeetingSelection({
|
|||||||
now.getTime() - startTime.getTime() >
|
now.getTime() - startTime.getTime() >
|
||||||
MEETING_DEFAULT_TIME_MINUTES * 1000
|
MEETING_DEFAULT_TIME_MINUTES * 1000
|
||||||
);
|
);
|
||||||
}),
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
const loading = roomQuery.isLoading || activeMeetingsQuery.isLoading;
|
const loading = roomQuery.isLoading || activeMeetingsQuery.isLoading;
|
||||||
|
|||||||
Reference in New Issue
Block a user