Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/editor/ConpherenceEditor.php
| Show First 20 Lines • Show All 416 Lines • ▼ Show 20 Lines | foreach ($participants as $phid => $participant) { | ||||
| $participant->setSeenMessageCount($object->getMessageCount()); | $participant->setSeenMessageCount($object->getMessageCount()); | ||||
| $participant->setBehindTransactionPHID($xaction_phid); | $participant->setBehindTransactionPHID($xaction_phid); | ||||
| $participant->setParticipationStatus($up_to_date); | $participant->setParticipationStatus($up_to_date); | ||||
| $participant->setDateTouched($time); | $participant->setDateTouched($time); | ||||
| } | } | ||||
| $participant->save(); | $participant->save(); | ||||
| } | } | ||||
| PhabricatorUserCache::clearCaches( | |||||
| PhabricatorUserMessageCountCacheType::KEY_COUNT, | |||||
| array_keys($participants)); | |||||
| if ($xactions) { | if ($xactions) { | ||||
| $data = array( | $data = array( | ||||
| 'type' => 'message', | 'type' => 'message', | ||||
| 'threadPHID' => $object->getPHID(), | 'threadPHID' => $object->getPHID(), | ||||
| 'messageID' => last($xactions)->getID(), | 'messageID' => last($xactions)->getID(), | ||||
| 'subscribers' => array($object->getPHID()), | 'subscribers' => array($object->getPHID()), | ||||
| ); | ); | ||||
| ▲ Show 20 Lines • Show All 270 Lines • Show Last 20 Lines | |||||