Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/editor/ConpherenceEditor.php
| Show First 20 Lines • Show All 425 Lines • ▼ Show 20 Lines | 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()), | ||||
| ); | ); | ||||
| PhabricatorNotificationClient::tryToPostMessage($data); | PhabricatorNotificationClient::tryToPostMessage($data); | ||||
| $data = array( | |||||
| 'type' => 'message', | |||||
| 'threadPHID' => $object->getPHID(), | |||||
| 'messageID' => last($xactions)->getID(), | |||||
| 'subscribers' => $participants, | |||||
| 'userPHID' => $user->getPHID(), | |||||
| ); | |||||
| PhabricatorWebpushClient::tryToPostMessage($data); | |||||
| } | } | ||||
| return $xactions; | return $xactions; | ||||
| } | } | ||||
| protected function requireCapabilities( | protected function requireCapabilities( | ||||
| PhabricatorLiskDAO $object, | PhabricatorLiskDAO $object, | ||||
| PhabricatorApplicationTransaction $xaction) { | PhabricatorApplicationTransaction $xaction) { | ||||
| ▲ Show 20 Lines • Show All 267 Lines • Show Last 20 Lines | |||||