From f19645adab404a9c2642b42ec335bf2830dd8aa7 Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Fri, 24 Nov 2023 01:49:30 +0100 Subject: enh(userstatus): add OOO automation and remove calendar automation Signed-off-by: Anna Larch --- lib/public/UserStatus/IManager.php | 4 +++- lib/public/UserStatus/IUserStatus.php | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'lib/public/UserStatus') diff --git a/lib/public/UserStatus/IManager.php b/lib/public/UserStatus/IManager.php index 9cc8eaad8ee..a85c1894c65 100644 --- a/lib/public/UserStatus/IManager.php +++ b/lib/public/UserStatus/IManager.php @@ -52,9 +52,11 @@ interface IManager { * @param string $messageId The id of the predefined message. * @param string $status The status to assign * @param bool $createBackup If true, this will store the old status so that it is possible to revert it later (e.g. after a call). + * @param string|null $customMessage * @since 23.0.0 + * @since 28.0.0 Optional parameter $customMessage was added */ - public function setUserStatus(string $userId, string $messageId, string $status, bool $createBackup = false): void; + public function setUserStatus(string $userId, string $messageId, string $status, bool $createBackup = false, ?string $customMessage = null): void; /** * Revert an automatically set user status. For example after leaving a call, diff --git a/lib/public/UserStatus/IUserStatus.php b/lib/public/UserStatus/IUserStatus.php index c96d07d298b..f5005e5616b 100644 --- a/lib/public/UserStatus/IUserStatus.php +++ b/lib/public/UserStatus/IUserStatus.php @@ -81,6 +81,12 @@ interface IUserStatus { */ public const MESSAGE_AVAILABILITY = 'availability'; + /** + * @var string + * @since 28.0.0 + */ + public const MESSAGE_VACATION = 'vacationing'; + /** * @var string * @since 28.0.0 -- cgit v1.2.3