From de23b4b7c34b89765e40c591bce1c9ad0e09b426 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 4 Dec 2024 07:48:44 +0100 Subject: [PATCH] fixup! feat(call): Direct endpoint to check if call notification should be dismissed --- docs/capabilities.md | 2 +- lib/Controller/CallNotificationController.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/capabilities.md b/docs/capabilities.md index 087e88571a5..8335ec6ee88 100644 --- a/docs/capabilities.md +++ b/docs/capabilities.md @@ -170,4 +170,4 @@ ## 21 * `config => conversations => force-passwords` - Whether passwords are enforced for public rooms * `conversation-creation-password` - Whether the endpoints for creating public conversations or making a conversation public support setting a password -* `call-notification-state-api` - Whether the endpoints exists to checking if a call notification should be dismissed +* `call-notification-state-api` - Whether the endpoints exists for checking if a call notification should be dismissed diff --git a/lib/Controller/CallNotificationController.php b/lib/Controller/CallNotificationController.php index dde7ca779be..31f1a881541 100644 --- a/lib/Controller/CallNotificationController.php +++ b/lib/Controller/CallNotificationController.php @@ -57,8 +57,7 @@ public function state(string $token): DataResponse { self::CASE_PARTICIPANT_JOINED, self::CASE_ROOM_NOT_FOUND => Http::STATUS_NOT_FOUND, self::CASE_MISSED_CALL => Http::STATUS_CREATED, - // self::CASE_STILL_CURRENT, - default => Http::STATUS_OK, + self::CASE_STILL_CURRENT => Http::STATUS_OK, }; return new DataResponse(null, $status);