From 71add5561a6d4b27ff545464da7988e211cdff7d Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 25 Jan 2024 11:05:48 +0100 Subject: [PATCH] fix(userstatus): Also set the user status when the user has no status at all Signed-off-by: Joas Schilling --- apps/dav/lib/CalDAV/Status/StatusService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/CalDAV/Status/StatusService.php b/apps/dav/lib/CalDAV/Status/StatusService.php index 58f2d5883fc..24e929f9d0e 100644 --- a/apps/dav/lib/CalDAV/Status/StatusService.php +++ b/apps/dav/lib/CalDAV/Status/StatusService.php @@ -125,7 +125,7 @@ class StatusService { } // Only update the status if it's neccesary otherwise we mess up the timestamp - if($currentStatus !== null && $currentStatus->getMessageId() !== IUserStatus::MESSAGE_CALENDAR_BUSY) { + if($currentStatus === null || $currentStatus->getMessageId() !== IUserStatus::MESSAGE_CALENDAR_BUSY) { // One event that fulfills all status conditions is enough // 1. Not an OOO event // 2. Current user status (that is not a calendar status) was not set after the start of this event -- 2.39.5