Differential D16041 Diff 38608 src/applications/conpherence/controller/ConpherenceViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/controller/ConpherenceViewController.php
| Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | public function handleRequest(AphrontRequest $request) { | ||||
| $this->setConpherence($conpherence); | $this->setConpherence($conpherence); | ||||
| $transactions = $this->getNeededTransactions( | $transactions = $this->getNeededTransactions( | ||||
| $conpherence, | $conpherence, | ||||
| $old_message_id); | $old_message_id); | ||||
| $latest_transaction = head($transactions); | $latest_transaction = head($transactions); | ||||
| $participant = $conpherence->getParticipantIfExists($user->getPHID()); | $participant = $conpherence->getParticipantIfExists($user->getPHID()); | ||||
| if ($participant) { | if ($participant) { | ||||
| if (!$participant->isUpToDate($conpherence)) { | |||||
| $write_guard = AphrontWriteGuard::beginScopedUnguardedWrites(); | $write_guard = AphrontWriteGuard::beginScopedUnguardedWrites(); | ||||
| $participant->markUpToDate($conpherence, $latest_transaction); | $participant->markUpToDate($conpherence, $latest_transaction); | ||||
| $user->clearCacheData(PhabricatorUserMessageCountCacheType::KEY_COUNT); | |||||
| unset($write_guard); | unset($write_guard); | ||||
| } | } | ||||
| } | |||||
| $data = ConpherenceTransactionRenderer::renderTransactions( | $data = ConpherenceTransactionRenderer::renderTransactions( | ||||
| $user, | $user, | ||||
| $conpherence, | $conpherence, | ||||
| $full_display = true, | $full_display = true, | ||||
| $marker_type); | $marker_type); | ||||
| $messages = ConpherenceTransactionRenderer::renderMessagePaneContent( | $messages = ConpherenceTransactionRenderer::renderMessagePaneContent( | ||||
| $data['transactions'], | $data['transactions'], | ||||
| ▲ Show 20 Lines • Show All 150 Lines • Show Last 20 Lines | |||||