diff --git a/lib/private/Sharing/SharingManager.php b/lib/private/Sharing/SharingManager.php index add248bcb934e..480505226b13b 100644 --- a/lib/private/Sharing/SharingManager.php +++ b/lib/private/Sharing/SharingManager.php @@ -231,7 +231,10 @@ public function updateShareUserStatus(ShareAccessContext $accessContext, Share $ throw new ShareInvalidException('Cannot set user status for the owner of the share.', $this->l10n->t('Cannot set user status for the owner of the share.')); } - // We don't update the share last updated value, because the user status is not part of the share itself. + // We update the share last updated value, even though the user status is not part of the share itself, + // so we can use the last updated value to coordinate syncing between unified and legacy shares. + $time = $this->getTime(); + $this->backend->setLastUpdated([$share->id], $time); $this->backend->updateShareUserStatus($share->id, $currentUser->getUID(), $userStatus);