Skip to content

Commit a875143

Browse files
authored
Merge pull request #7734 from nextcloud/backport/7702/stable31
[stable31] fix(sync): handle empty push requests
2 parents e0f9512 + 57c5191 commit a875143

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/Service/ApiService.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,6 @@ public function push(Session $session, Document $document, int $version, array $
181181
// Session was removed in the meantime. #3875
182182
return new DataResponse(['error' => $this->l10n->t('Editing session has expired. Please reload the page.')], Http::STATUS_PRECONDITION_FAILED);
183183
}
184-
if (empty($steps)) {
185-
return new DataResponse([]);
186-
}
187184
try {
188185
$result = $this->documentService->addStep($document, $session, $steps, $version, $token);
189186
$this->addToPushQueue($document, [$awareness, ...array_values($steps)]);

0 commit comments

Comments
 (0)