From 18099453d7715eacb21f1668a571dc2ee81b7c0c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 15 Oct 2024 15:10:21 +0200 Subject: [PATCH] Fix the code style --- files/lib/bootstrap/com.woltlab.wcf.conversation.php | 6 +++--- files/lib/page/ConversationPage.class.php | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/files/lib/bootstrap/com.woltlab.wcf.conversation.php b/files/lib/bootstrap/com.woltlab.wcf.conversation.php index 95d9bba..a7789ed 100644 --- a/files/lib/bootstrap/com.woltlab.wcf.conversation.php +++ b/files/lib/bootstrap/com.woltlab.wcf.conversation.php @@ -7,8 +7,8 @@ return static function (): void { $eventHandler = EventHandler::getInstance(); $eventHandler->register(RebuildWorkerCollecting::class, static function (RebuildWorkerCollecting $event) { - $event->register(\wcf\system\worker\ConversationMessageRebuildDataWorker::class, -5); - $event->register(\wcf\system\worker\ConversationRebuildDataWorker::class, 0); - $event->register(\wcf\system\worker\ConversationMessageSearchIndexRebuildDataWorker::class, 300); + $event->register(wcf\system\worker\ConversationMessageRebuildDataWorker::class, -5); + $event->register(wcf\system\worker\ConversationRebuildDataWorker::class, 0); + $event->register(wcf\system\worker\ConversationMessageSearchIndexRebuildDataWorker::class, 300); }); }; diff --git a/files/lib/page/ConversationPage.class.php b/files/lib/page/ConversationPage.class.php index 2d4e67f..21bfdcc 100644 --- a/files/lib/page/ConversationPage.class.php +++ b/files/lib/page/ConversationPage.class.php @@ -210,7 +210,8 @@ class ConversationPage extends MultipleLinkPage // update last visit time count if ( $this->conversation->isNew() - && ($this->objectList->getMaxPostTime() > $this->conversation->lastVisitTime + && ( + $this->objectList->getMaxPostTime() > $this->conversation->lastVisitTime || ($this->conversation->joinedAt && !\count($this->objectList)) ) ) { -- 2.20.1