diff options
author | Joas Schilling <coding@schilljs.com> | 2024-01-25 11:05:48 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-01-25 11:05:48 +0100 |
commit | 71add5561a6d4b27ff545464da7988e211cdff7d (patch) | |
tree | 653156f227c19d2491afb80cb0410fefce31931a /apps/dav/lib/CalDAV | |
parent | e1b957e17bc0b588a24971f40553b3723584b2b0 (diff) | |
download | nextcloud-server-71add5561a6d4b27ff545464da7988e211cdff7d.tar.gz nextcloud-server-71add5561a6d4b27ff545464da7988e211cdff7d.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/lib/CalDAV')
-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 |