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
pull/4761/head
Angel Fernando Quiroz Campos 2 years ago committed by GitHub
parent 47d0cef9bd
commit b7ebccbae0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      plugin/zoom/lib/MeetingRepository.php

@ -30,9 +30,14 @@ class MeetingRepository extends EntityRepository
public function periodMeetings($startDate, $endDate)
{
$matching = [];
/** @var array<Meeting> $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);

Loading…
Cancel
Save