Skip to content

Commit cdb7c9d

Browse files
committed
fix(hpb-service): An account is not expired if Unauthorized is returned.
1 parent 0526b72 commit cdb7c9d

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

lib/BackgroundJob/CheckHostedSignalingServer.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ protected function run($argument): void {
114114
if ($e->getCode() === Http::STATUS_NOT_FOUND) {
115115
// Account was deleted, so remove the information locally
116116
$accountInfo = ['status' => 'deleted'];
117-
} elseif ($e->getCode() === Http::STATUS_UNAUTHORIZED) {
118-
// Account is expired and deletion is pending unless it's reactivated.
119-
$accountInfo = ['status' => 'expired'];
120117
} else {
121118
// API or connection issues - do nothing and just try again later
122119
return;

lib/Controller/HostedSignalingServerController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ public function deleteAccount(): DataResponse {
118118
} catch (HostedSignalingServerAPIException $e) {
119119
if ($e->getCode() === Http::STATUS_NOT_FOUND) {
120120
// Account was deleted, so remove the information locally
121-
} elseif ($e->getCode() === Http::STATUS_UNAUTHORIZED) {
122-
// Account is expired and deletion is pending unless it's reactivated.
123121
} else {
124122
// API or connection issues - do nothing and just try again later
125123
return new DataResponse(['message' => $e->getMessage()], Http::STATUS_INTERNAL_SERVER_ERROR);

0 commit comments

Comments
 (0)