aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_status/lib/Connector/UserStatus.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_status/lib/Connector/UserStatus.php')
-rw-r--r--apps/user_status/lib/Connector/UserStatus.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/user_status/lib/Connector/UserStatus.php b/apps/user_status/lib/Connector/UserStatus.php
index acbdac2007b..e8ab31bb103 100644
--- a/apps/user_status/lib/Connector/UserStatus.php
+++ b/apps/user_status/lib/Connector/UserStatus.php
@@ -25,6 +25,7 @@ declare(strict_types=1);
namespace OCA\UserStatus\Connector;
use DateTimeImmutable;
+use OCA\UserStatus\Service\StatusService;
use OCP\UserStatus\IUserStatus;
use OCA\UserStatus\Db;
@@ -56,8 +57,8 @@ class UserStatus implements IUserStatus {
$this->message = $status->getCustomMessage();
$this->icon = $status->getCustomIcon();
- if ($status->getStatus() === 'invisible') {
- $this->status = 'offline';
+ if ($status->getStatus() === StatusService::INVISIBLE) {
+ $this->status = StatusService::OFFLINE;
}
if ($status->getClearAt() !== null) {
$this->clearAt = DateTimeImmutable::createFromFormat('U', (string)$status->getClearAt());