Skip to content

Commit

Permalink
doc: add some comments from coworking with mejo
Browse files Browse the repository at this point in the history
Signed-off-by: Max <max@nextcloud.com>
  • Loading branch information
max-nextcloud committed Dec 7, 2022
1 parent 5f30093 commit 3057169
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/Service/DocumentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ public function addStep($documentId, $sessionId, $steps, $version): array {
if (sizeof($stepsToInsert) > 0) {
$newVersion = $this->insertSteps($documentId, $sessionId, $stepsToInsert, $version);
}
// If there were any queries in the steps send the entire history
$getStepsSinceVersion = sizeof($querySteps) > 0 ? 0 : $version;
return [
'steps' => $this->getSteps($documentId, $getStepsSinceVersion),
Expand Down
16 changes: 16 additions & 0 deletions src/tests/fixtures/recorded.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3057169

Please sign in to comment.