diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-03-29 10:35:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-29 10:35:25 +0200 |
commit | 262d22f1847f92de91eaeadc143e75e9b752a3ba (patch) | |
tree | 0b16f219fe2284a4bac16416b56de4467b4336e8 /apps/files_sharing | |
parent | 765999f454c0c5ebd8f2aa693d123f62d104d37a (diff) | |
parent | de5af8efbff8dacd28e6f9eea765c45a22ea7cab (diff) | |
download | nextcloud-server-262d22f1847f92de91eaeadc143e75e9b752a3ba.tar.gz nextcloud-server-262d22f1847f92de91eaeadc143e75e9b752a3ba.zip |
Merge pull request #31711 from nextcloud/mount-cache-external-share
invalidate mount cache after accepting or renaming federated share
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/External/Manager.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/External/Manager.php b/apps/files_sharing/lib/External/Manager.php index a8510321a5a..b9ed4acd57f 100644 --- a/apps/files_sharing/lib/External/Manager.php +++ b/apps/files_sharing/lib/External/Manager.php @@ -374,6 +374,7 @@ class Manager { $this->sendFeedbackToRemote($share['remote'], $share['share_token'], $share['remote_id'], 'accept'); $event = new FederatedShareAddedEvent($share['remote']); $this->eventDispatcher->dispatchTyped($event); + $this->eventDispatcher->dispatchTyped(new Files\Events\InvalidateMountCacheEvent($this->userManager->get($this->uid))); $result = true; } } @@ -596,6 +597,8 @@ class Manager { '); $result = (bool)$query->execute([$target, $targetHash, $sourceHash, $this->uid]); + $this->eventDispatcher->dispatchTyped(new Files\Events\InvalidateMountCacheEvent($this->userManager->get($this->uid))); + return $result; } |