summaryrefslogtreecommitdiffstats
path: root/apps/user_status/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-06-07 20:44:15 +0200
committerJoas Schilling <coding@schilljs.com>2022-07-01 12:33:07 +0200
commit159272bb9397f98465dd28ed504bd78b2ee2e4fd (patch)
treedd9de16fee67712117efecede654f6abfd87faf5 /apps/user_status/lib
parent4f7f4d74db0464b255eeedd4890b0604540e1e60 (diff)
downloadnextcloud-server-159272bb9397f98465dd28ed504bd78b2ee2e4fd.tar.gz
nextcloud-server-159272bb9397f98465dd28ed504bd78b2ee2e4fd.zip
Fix predefined message
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/user_status/lib')
-rw-r--r--apps/user_status/lib/Service/PredefinedStatusService.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/user_status/lib/Service/PredefinedStatusService.php b/apps/user_status/lib/Service/PredefinedStatusService.php
index 354e0f16b32..40f6052aa95 100644
--- a/apps/user_status/lib/Service/PredefinedStatusService.php
+++ b/apps/user_status/lib/Service/PredefinedStatusService.php
@@ -26,6 +26,7 @@ declare(strict_types=1);
namespace OCA\UserStatus\Service;
use OCP\IL10N;
+use OCP\UserStatus\IUserStatus;
/**
* Class DefaultStatusService
@@ -41,6 +42,9 @@ class PredefinedStatusService {
private const SICK_LEAVE = 'sick-leave';
private const VACATIONING = 'vacationing';
private const REMOTE_WORK = 'remote-work';
+ /**
+ * @depreacted See \OCP\UserStatus\IUserStatus::MESSAGE_CALL
+ */
public const CALL = 'call';
/** @var IL10N */
@@ -196,7 +200,8 @@ class PredefinedStatusService {
self::SICK_LEAVE,
self::VACATIONING,
self::REMOTE_WORK,
- self::CALL,
+ IUserStatus::MESSAGE_CALL,
+ IUserStatus::MESSAGE_AVAILABILITY,
], true);
}
}