From b7ebccbae097237e60ea2fa3bdf2418e170757d9 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Mon, 19 Jun 2023 16:38:49 -0500 Subject: [PATCH] Plugin: Zoom: Don't consider instant meeting as period meeting Don't try to show instant meeting in the profile block or in the agenda --- plugin/zoom/lib/MeetingRepository.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugin/zoom/lib/MeetingRepository.php b/plugin/zoom/lib/MeetingRepository.php index 5f0738a1b6..392b2ae5b9 100644 --- a/plugin/zoom/lib/MeetingRepository.php +++ b/plugin/zoom/lib/MeetingRepository.php @@ -30,9 +30,14 @@ class MeetingRepository extends EntityRepository public function periodMeetings($startDate, $endDate) { $matching = []; - /** @var array $all */ $all = $this->findAll(); + + /** @var Meeting $candidate */ foreach ($all as $candidate) { + if (API\Meeting::TYPE_INSTANT === $candidate->getMeetingInfoGet()->type) { + continue; + } + $cantidateEndDate = clone $candidate->startDateTime; $cantidateEndDate->add($candidate->durationInterval);