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