mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
fix(userstatus): add missing parenthesis
Signed-off-by: Anna Larch <anna@nextcloud.com>
This commit is contained in:
parent
13921cab98
commit
3776eb4e01
1 changed files with 3 additions and 3 deletions
|
|
@ -81,9 +81,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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue