Skip to content

Commit a831302

Browse files
committed
Adapt function based on feedback
1 parent 6efec01 commit a831302

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/BigBlueButton.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -211,21 +211,14 @@ public function isMeetingRunning(IsMeetingRunningParameters $meetingParams): IsM
211211
/**
212212
* Checks weather a meeting is existing.
213213
*
214-
* @see https://github.com/bigbluebutton/bigbluebutton/issues/8246
215-
*
216214
* @throws BadResponseException
217215
*/
218216
public function isMeetingExisting(string $meetingId): bool
219217
{
220-
$meetings = $this->getMeetings()->getMeetings();
221-
222-
foreach ($meetings as $meeting) {
223-
if ($meetingId === $meeting->getMeetingId()) {
224-
return true;
225-
}
226-
}
218+
$getMeetingInfoParameters = new GetMeetingInfoParameters($meetingId);
219+
$meetingInfoResponse = $this->getMeetingInfo($getMeetingInfoParameters);
227220

228-
return false;
221+
return $meetingInfoResponse->success();
229222
}
230223

231224
public function getMeetingsUrl(): string

0 commit comments

Comments
 (0)