Fix predefined message

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2022-06-07 20:44:15 +02:00
parent 4f7f4d74db
commit 159272bb93
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA

View File

@ -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);
}
}