From 61b63d8bb5d3fd0057d16f8c08b2fde286673379 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 22 Nov 2024 09:15:23 +0100 Subject: [PATCH] fix(federation): Fix expected status code Signed-off-by: Joas Schilling --- lib/Federation/Proxy/TalkV1/Controller/CallController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Federation/Proxy/TalkV1/Controller/CallController.php b/lib/Federation/Proxy/TalkV1/Controller/CallController.php index f4c3903f43a..a2fee70ce42 100644 --- a/lib/Federation/Proxy/TalkV1/Controller/CallController.php +++ b/lib/Federation/Proxy/TalkV1/Controller/CallController.php @@ -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); } @@ -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); }