/** * {@inheritdoc} */ public function syncContacts(array $contacs, array $delete = null) { $this->gateway()->sendSync($contacs, $delete); $result = $this->session->pull(); if ($result && !empty($result->existing)) { $contacs = []; foreach ($result->existing as $key => $value) { $contacs[] = str_replace('+', '', $key); } $this->subscribe($contacs); } return $result; }
/** * {@inheritdoc} */ public function syncContacts(array $contacs, array $delete = null) { $this->gateway()->sendSync($contacs, $delete); return $this->session->pull(); }