live_input_id === null ? null : $this->stream->liveInput($user->live_input_id); if ($input instanceof LiveInput) { return $input; } $uid = $this->stream->createLiveInput($user->handle); $user->update(['live_input_id' => $uid]); $input = $this->stream->liveInput($uid); assert($input instanceof LiveInput); return $input; } }