Skip to content

Commit

Permalink
fixup! enh(user_status): set OoO status and message
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Nov 15, 2023
1 parent 742add4 commit a7bed65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/dav/lib/Service/AbsenceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function getAbsenceTimezone(string $userId): ?string {

if(!empty($personal)) {
$personal = array_pop($personal);
$tz = $personal->getSchedulingTimezone();
$tz = $personal instanceof CalendarImpl ? $personal->getSchedulingTimezone() : null;
}

if($tz !== null) {
Expand Down
2 changes: 1 addition & 1 deletion apps/user_status/lib/Service/StatusService.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function findByUserId(string $userId): UserStatus {
// A user can be OOO while not having declined a calendar event during that time
$absenceStatus = $this->coordinator->getCurrentOutOfOfficeData($user);
if(!empty($absenceStatus)) {
$status = $this->setStatus($userId, IUserStatus::DND, $this->timeFactory->getTime());
$status = $this->setStatus($userId, IUserStatus::DND, $this->timeFactory->getTime(), false);
return $this->processStatus($status);
}

Expand Down

0 comments on commit a7bed65

Please sign in to comment.