diff options
Diffstat (limited to 'apps/user_status/lib/Dashboard/UserStatusWidget.php')
-rw-r--r-- | apps/user_status/lib/Dashboard/UserStatusWidget.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/user_status/lib/Dashboard/UserStatusWidget.php b/apps/user_status/lib/Dashboard/UserStatusWidget.php index 9cd29e3ddba..6ccea95acdc 100644 --- a/apps/user_status/lib/Dashboard/UserStatusWidget.php +++ b/apps/user_status/lib/Dashboard/UserStatusWidget.php @@ -32,6 +32,7 @@ use OCP\IInitialStateService; use OCP\IL10N; use OCP\IUserManager; use OCP\IUserSession; +use OCP\UserStatus\IUserStatus; /** * Class UserStatusWidget @@ -146,8 +147,8 @@ class UserStatusWidget implements IWidget { return [ 'userId' => $status->getUserId(), 'displayName' => $displayName, - 'status' => $status->getStatus() === StatusService::INVISIBLE - ? StatusService::OFFLINE + 'status' => $status->getStatus() === IUserStatus::INVISIBLE + ? IUserStatus::OFFLINE : $status->getStatus(), 'icon' => $status->getCustomIcon(), 'message' => $status->getCustomMessage(), |