Browse Source

fix: Move definition of $details so also IDEs see this never happens

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/13037/head
Joas Schilling 1 year ago
parent
commit
1779aeeb31
No known key found for this signature in database GPG Key ID: 74434EFE0D2E2205
  1. 2
      lib/Service/RoomService.php

2
lib/Service/RoomService.php

@ -894,12 +894,12 @@ class RoomService {
return false;
}
$details = [];
if ($room->getActiveSince() instanceof \DateTime) {
// Call is already active, just someone upgrading the call flags
$event = new BeforeRoomModifiedEvent($room, ARoomModifiedEvent::PROPERTY_IN_CALL, $callFlag, $oldCallFlag, $participant);
$this->dispatcher->dispatchTyped($event);
} else {
$details = [];
if ($silent) {
$details[AParticipantModifiedEvent::DETAIL_IN_CALL_SILENT] = true;
}

Loading…
Cancel
Save