diff --git a/lib/BackgroundJob/CheckHostedSignalingServer.php b/lib/BackgroundJob/CheckHostedSignalingServer.php index 29e064b5b5f..09a22bef8e3 100644 --- a/lib/BackgroundJob/CheckHostedSignalingServer.php +++ b/lib/BackgroundJob/CheckHostedSignalingServer.php @@ -114,9 +114,6 @@ protected function run($argument): void { if ($e->getCode() === Http::STATUS_NOT_FOUND) { // Account was deleted, so remove the information locally $accountInfo = ['status' => 'deleted']; - } elseif ($e->getCode() === Http::STATUS_UNAUTHORIZED) { - // Account is expired and deletion is pending unless it's reactivated. - $accountInfo = ['status' => 'expired']; } else { // API or connection issues - do nothing and just try again later return; diff --git a/lib/Controller/HostedSignalingServerController.php b/lib/Controller/HostedSignalingServerController.php index 0f1760790ae..477a8bfeef6 100644 --- a/lib/Controller/HostedSignalingServerController.php +++ b/lib/Controller/HostedSignalingServerController.php @@ -118,8 +118,6 @@ public function deleteAccount(): DataResponse { } catch (HostedSignalingServerAPIException $e) { if ($e->getCode() === Http::STATUS_NOT_FOUND) { // Account was deleted, so remove the information locally - } elseif ($e->getCode() === Http::STATUS_UNAUTHORIZED) { - // Account is expired and deletion is pending unless it's reactivated. } else { // API or connection issues - do nothing and just try again later return new DataResponse(['message' => $e->getMessage()], Http::STATUS_INTERNAL_SERVER_ERROR);