diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/CalDAV/Status/StatusService.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/lib/CalDAV/Status/StatusService.php b/apps/dav/lib/CalDAV/Status/StatusService.php index ed2c233055c..e6aa9f103b6 100644 --- a/apps/dav/lib/CalDAV/Status/StatusService.php +++ b/apps/dav/lib/CalDAV/Status/StatusService.php @@ -98,9 +98,9 @@ class StatusService { $currentStatus = null; } - if($currentStatus !== null && $currentStatus->getMessageId() === IUserStatus::MESSAGE_CALL - || $currentStatus !== null && $currentStatus->getStatus() === IUserStatus::DND - || $currentStatus !== null && $currentStatus->getStatus() === IUserStatus::INVISIBLE) { + if(($currentStatus !== null && $currentStatus->getMessageId() === IUserStatus::MESSAGE_CALL) + || ($currentStatus !== null && $currentStatus->getStatus() === IUserStatus::DND) + || ($currentStatus !== null && $currentStatus->getStatus() === IUserStatus::INVISIBLE)) { // We don't overwrite the call status, DND status or Invisible status $this->logger->debug('Higher priority status detected, skipping calendar status change', ['user' => $userId]); return; |