Skip to content

Commit

Permalink
fixup! fix(userstatus): CALL status should overwrite MEETING status
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Jan 18, 2024
1 parent 7afa85a commit c871ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/CalDAV/Status/StatusService.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function processCalendarStatus(string $userId): void {
}

// Only update the status if it's neccesary otherwise we mess up the timestamp
if($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
Expand Down

0 comments on commit c871ddf

Please sign in to comment.