From a3b8146508c470f64e67702ebef5e3dba267bd25 Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Fri, 15 Dec 2023 11:56:17 +0100 Subject: [PATCH] fixup! fix(ooo): add new ooo status with new emoji --- apps/user_status/lib/Listener/OutOfOfficeStatusListener.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/user_status/lib/Listener/OutOfOfficeStatusListener.php b/apps/user_status/lib/Listener/OutOfOfficeStatusListener.php index e10bd9fdf86f4..8255787bdfab5 100644 --- a/apps/user_status/lib/Listener/OutOfOfficeStatusListener.php +++ b/apps/user_status/lib/Listener/OutOfOfficeStatusListener.php @@ -54,7 +54,7 @@ public function __construct(private IJobList $jobsList, public function handle(Event $event): void { if($event instanceof OutOfOfficeClearedEvent) { $this->manager->revertUserStatus($event->getData()->getUser()->getUID(), IUserStatus::MESSAGE_OUT_OF_OFFICE, IUserStatus::DND); - $this->jobsList->remove(UserStatusAutomation::class, ['userId' => $event->getData()->getUser()->getUID()] ); + $this->jobsList->remove(UserStatusAutomation::class, ['userId' => $event->getData()->getUser()->getUID()]); $this->jobsList->scheduleAfter(UserStatusAutomation::class, $this->time->getTime(), ['userId' => $event->getData()->getUser()->getUID()]); return; } @@ -62,7 +62,7 @@ public function handle(Event $event): void { if ($event instanceof OutOfOfficeScheduledEvent || $event instanceof OutOfOfficeChangedEvent) { // This might be overwritten by the office hours automation, but that is ok. This is just in case no office hours are set - $this->jobsList->remove(UserStatusAutomation::class, ['userId' => $event->getData()->getUser()->getUID()] ); + $this->jobsList->remove(UserStatusAutomation::class, ['userId' => $event->getData()->getUser()->getUID()]); $this->jobsList->scheduleAfter(UserStatusAutomation::class, $this->time->getTime(), ['userId' => $event->getData()->getUser()->getUID()]); } }