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