Skip to content

Commit

Permalink
fix(federation): Fix expected status code
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Nov 22, 2024
1 parent b3eec44 commit 61b63d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Federation/Proxy/TalkV1/Controller/CallController.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function joinFederatedCall(Room $room, Participant $participant, int $fla

if ($statusCode === Http::STATUS_BAD_REQUEST) {
/** @var array{error: string} $data */
$data = $this->proxy->getOCSData($proxy);
$data = $this->proxy->getOCSData($proxy, [Http::STATUS_BAD_REQUEST]);
return new DataResponse($data, $statusCode);
}

Expand Down Expand Up @@ -136,7 +136,7 @@ public function ringAttendee(Room $room, Participant $participant, int $attendee

if ($statusCode === Http::STATUS_BAD_REQUEST) {
/** @var array{error: string} $data */
$data = $this->proxy->getOCSData($proxy);
$data = $this->proxy->getOCSData($proxy, [Http::STATUS_BAD_REQUEST]);
return new DataResponse($data, $statusCode);
}

Expand Down

0 comments on commit 61b63d8

Please sign in to comment.