From: Alexander Ebert Date: Tue, 15 Oct 2024 13:10:21 +0000 (+0200) Subject: Fix the code style X-Git-Tag: 6.1.0~1^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=18099453d7715eacb21f1668a571dc2ee81b7c0c;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.conversation.git Fix the code style --- 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)) ) ) {