|
28 | 28 |
|
29 | 29 | namespace OCA\Talk\Controller; |
30 | 30 |
|
31 | | -use InvalidArgumentException; |
32 | 31 | use OCA\Talk\Config; |
33 | 32 | use OCA\Talk\Events\AAttendeeRemovedEvent; |
34 | 33 | use OCA\Talk\Events\BeforeRoomsFetchEvent; |
@@ -282,7 +281,7 @@ public function getListedRooms(string $searchTerm = ''): DataResponse { |
282 | 281 | public function getBreakoutRooms(): DataResponse { |
283 | 282 | try { |
284 | 283 | $rooms = $this->breakoutRoomService->getBreakoutRooms($this->room, $this->participant); |
285 | | - } catch (InvalidArgumentException $e) { |
| 284 | + } catch (\InvalidArgumentException $e) { |
286 | 285 | return new DataResponse(['error' => $e->getMessage()], Http::STATUS_BAD_REQUEST); |
287 | 286 | } |
288 | 287 |
|
@@ -534,7 +533,7 @@ protected function createOneToOneRoom(string $targetUserId): DataResponse { |
534 | 533 | $this->formatRoom($room, $this->participantService->getParticipant($room, $currentUser->getUID(), false)), |
535 | 534 | Http::STATUS_CREATED |
536 | 535 | ); |
537 | | - } catch (InvalidArgumentException $e) { |
| 536 | + } catch (\InvalidArgumentException $e) { |
538 | 537 | // Same current and target user |
539 | 538 | return new DataResponse([], Http::STATUS_FORBIDDEN); |
540 | 539 | } catch (RoomNotFoundException $e) { |
@@ -642,7 +641,7 @@ protected function createEmptyRoom(string $roomName, bool $public = true, string |
642 | 641 | // Create the room |
643 | 642 | try { |
644 | 643 | $room = $this->roomService->createConversation($roomType, $roomName, $currentUser, $objectType, $objectId); |
645 | | - } catch (InvalidArgumentException $e) { |
| 644 | + } catch (\InvalidArgumentException $e) { |
646 | 645 | return new DataResponse([], Http::STATUS_BAD_REQUEST); |
647 | 646 | } |
648 | 647 |
|
@@ -852,7 +851,7 @@ public function getBreakoutRoomParticipants(bool $includeStatus = false): DataRe |
852 | 851 |
|
853 | 852 | try { |
854 | 853 | $breakoutRooms = $this->breakoutRoomService->getBreakoutRooms($this->room, $this->participant); |
855 | | - } catch (InvalidArgumentException $e) { |
| 854 | + } catch (\InvalidArgumentException $e) { |
856 | 855 | return new DataResponse(['error' => $e->getMessage()], Http::STATUS_BAD_REQUEST); |
857 | 856 | } |
858 | 857 |
|
|
0 commit comments