Skip to content

Commit

Permalink
Fix the code style
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdesign committed Oct 15, 2024
1 parent cf5a9a2 commit 1809945
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions files/lib/bootstrap/com.woltlab.wcf.conversation.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
$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);
});
};
3 changes: 2 additions & 1 deletion files/lib/page/ConversationPage.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ public function readData()
// 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))
)
) {
Expand Down

0 comments on commit 1809945

Please sign in to comment.