diff options
author | Joas Schilling <coding@schilljs.com> | 2024-01-25 11:05:48 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-01-25 10:10:41 +0000 |
commit | aa24c671dcad93b56d7ff864f3595249116b6263 (patch) | |
tree | 1f67ea196a19d2b599cbce23fc6f5af8c03baf6a /apps/dav | |
parent | a3095303d58eac0bc6782922699116a2a31cbf15 (diff) | |
download | nextcloud-server-aa24c671dcad93b56d7ff864f3595249116b6263.tar.gz nextcloud-server-aa24c671dcad93b56d7ff864f3595249116b6263.zip |
fix(userstatus): Also set the user status when the user has no status at all
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/CalDAV/Status/StatusService.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 |