From a3897312d33ab09780bbdee2e04585a2e0d1b6f6 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 4 Sep 2026 15:20:01 +0200 Subject: [PATCH] fix: update last share update time when changing user status Signed-off-by: Robin Appelman --- lib/private/Sharing/SharingManager.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);