Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! feat(call): Direct endpoint to check if c…
Browse files Browse the repository at this point in the history
…all notification should be dismissed
  • Loading branch information
nickvergessen committed Dec 4, 2024
1 parent feedcc6 commit f1ecc18
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion appinfo/routes/routesCallController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/** @see \OCA\Talk\Controller\CallController::getPeersForCall() */
['name' => 'Call#getPeersForCall', 'url' => '/api/{apiVersion}/call/{token}', 'verb' => 'GET', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\CallNotificationController::state() */
['name' => 'CallNotification#state', 'url' => '/api/{apiVersion}/call/{token}/notification', 'verb' => 'GET', 'requirements' => $requirements],
['name' => 'CallNotification#state', 'url' => '/api/{apiVersion}/call/{token}/notification-state', 'verb' => 'GET', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\CallController::downloadParticipantsForCall() */
['name' => 'Call#downloadParticipantsForCall', 'url' => '/api/{apiVersion}/call/{token}/download', 'verb' => 'GET', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\CallController::joinCall() */
Expand Down
2 changes: 1 addition & 1 deletion openapi-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -4560,7 +4560,7 @@
}
}
},
"/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/notification": {
"/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/notification-state": {
"get": {
"operationId": "call_notification-state",
"summary": "Check the expected state of a call notification",
Expand Down
2 changes: 1 addition & 1 deletion openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -4447,7 +4447,7 @@
}
}
},
"/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/notification": {
"/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/notification-state": {
"get": {
"operationId": "call_notification-state",
"summary": "Check the expected state of a call notification",
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/openapi-full.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export type paths = {
patch?: never;
trace?: never;
};
"/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/notification": {
"/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/notification-state": {
parameters: {
query?: never;
header?: never;
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export type paths = {
patch?: never;
trace?: never;
};
"/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/notification": {
"/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/notification-state": {
parameters: {
query?: never;
header?: never;
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -2139,7 +2139,7 @@ public function userJoinsCall(string $user, string $identifier, int $statusCode,
*/
public function userChecksCallNotification(string $user, string $identifier, int $statusCode, string $apiVersion, ?TableNode $formData = null): void {
$this->setCurrentUser($user);
$this->sendRequest('GET', '/apps/spreed/api/' . $apiVersion . '/call/' . self::$identifierToToken[$identifier] . '/notification');
$this->sendRequest('GET', '/apps/spreed/api/' . $apiVersion . '/call/' . self::$identifierToToken[$identifier] . '/notification-state');
$this->assertStatusCode($this->response, $statusCode);
}

Expand Down

0 comments on commit f1ecc18

Please sign in to comment.