Skip to content

Commit bbf19e1

Browse files
committed
fixup! fix(ooo): add new ooo status with new emoji
1 parent cd884bb commit bbf19e1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

apps/user_status/lib/Listener/OutOfOfficeStatusListener.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,13 @@ public function __construct(private IJobList $jobsList,
5454
public function handle(Event $event): void {
5555
if($event instanceof OutOfOfficeClearedEvent) {
5656
$this->manager->revertUserStatus($event->getData()->getUser()->getUID(), IUserStatus::MESSAGE_OUT_OF_OFFICE, IUserStatus::DND);
57-
$this->jobsList->remove(UserStatusAutomation::class, ['userId' => $event->getData()->getUser()->getUID()]);
5857
$this->jobsList->scheduleAfter(UserStatusAutomation::class, $this->time->getTime(), ['userId' => $event->getData()->getUser()->getUID()]);
5958
return;
6059
}
6160

6261
if ($event instanceof OutOfOfficeScheduledEvent
6362
|| $event instanceof OutOfOfficeChangedEvent) {
6463
// This might be overwritten by the office hours automation, but that is ok. This is just in case no office hours are set
65-
$this->jobsList->remove(UserStatusAutomation::class, ['userId' => $event->getData()->getUser()->getUID()]);
6664
$this->jobsList->scheduleAfter(UserStatusAutomation::class, $this->time->getTime(), ['userId' => $event->getData()->getUser()->getUID()]);
6765
}
6866
}

0 commit comments

Comments
 (0)