Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-02-10 17:50:09 +0300
committerJoas Schilling <coding@schilljs.com>2022-02-15 18:06:32 +0300
commitc5d11abff9b46cfee186f68f1d9ee575db41ce5e (patch)
treed3fdcdddb9a11f0dbe06976e515f9b233baf8f48 /apps/user_status
parentba7a31d73b34c622ed74e6aed8c1695327c2d574 (diff)
Directly delete the user status instead of getting it a second time
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/user_status')
-rw-r--r--apps/user_status/lib/Service/StatusService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_status/lib/Service/StatusService.php b/apps/user_status/lib/Service/StatusService.php
index ad50a541a00..1f72fd8a21b 100644
--- a/apps/user_status/lib/Service/StatusService.php
+++ b/apps/user_status/lib/Service/StatusService.php
@@ -474,7 +474,7 @@ class StatusService {
// Another status is set automatically, do nothing
return;
}
- $this->removeUserStatus($userId);
+ $this->mapper->delete($userStatus);
} catch (DoesNotExistException $ex) {
// No current status => nothing to delete
}