Skip to content

Commit f645c9b

Browse files
Merge pull request #46287 from nextcloud/fix/noid/missing-parentheses
fix(userstatus): add missing parenthesis
2 parents 5faa903 + 3776eb4 commit f645c9b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/dav/lib/CalDAV/Status/StatusService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ public function processCalendarStatus(string $userId): void {
8181
$currentStatus = null;
8282
}
8383

84-
if($currentStatus !== null && $currentStatus->getMessageId() === IUserStatus::MESSAGE_CALL
85-
|| $currentStatus !== null && $currentStatus->getStatus() === IUserStatus::DND
86-
|| $currentStatus !== null && $currentStatus->getStatus() === IUserStatus::INVISIBLE) {
84+
if(($currentStatus !== null && $currentStatus->getMessageId() === IUserStatus::MESSAGE_CALL)
85+
|| ($currentStatus !== null && $currentStatus->getStatus() === IUserStatus::DND)
86+
|| ($currentStatus !== null && $currentStatus->getStatus() === IUserStatus::INVISIBLE)) {
8787
// We don't overwrite the call status, DND status or Invisible status
8888
$this->logger->debug('Higher priority status detected, skipping calendar status change', ['user' => $userId]);
8989
return;

0 commit comments

Comments
 (0)