public function markGroupAsRead(\AlfredSlack\Models\GroupModel $group) { $teamId = $group->getAuth()->team_id; $model = $this->services[$teamId]; return $model->markGroupAsRead($group); }
public function markGroupAsRead(\AlfredSlack\Models\GroupModel $group) { $now = time(); $this->commander->executeAsync('groups.mark', ['channel' => $group->getId(), 'ts' => $now]); }