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
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
1 changed files with
1 additions and
1 deletions
-
lib/Service/RoomService.php
|
|
@ -894,12 +894,12 @@ class RoomService { |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$details = []; |
|
|
if ($room->getActiveSince() instanceof \DateTime) { |
|
|
if ($room->getActiveSince() instanceof \DateTime) { |
|
|
// Call is already active, just someone upgrading the call flags
|
|
|
// Call is already active, just someone upgrading the call flags
|
|
|
$event = new BeforeRoomModifiedEvent($room, ARoomModifiedEvent::PROPERTY_IN_CALL, $callFlag, $oldCallFlag, $participant); |
|
|
$event = new BeforeRoomModifiedEvent($room, ARoomModifiedEvent::PROPERTY_IN_CALL, $callFlag, $oldCallFlag, $participant); |
|
|
$this->dispatcher->dispatchTyped($event); |
|
|
$this->dispatcher->dispatchTyped($event); |
|
|
} else { |
|
|
} else { |
|
|
$details = []; |
|
|
|
|
|
if ($silent) { |
|
|
if ($silent) { |
|
|
$details[AParticipantModifiedEvent::DETAIL_IN_CALL_SILENT] = true; |
|
|
$details[AParticipantModifiedEvent::DETAIL_IN_CALL_SILENT] = true; |
|
|
} |
|
|
} |
|
|
|