diff options
author | Robin Appelman <robin@icewind.nl> | 2022-03-25 14:18:36 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-03-25 14:18:36 +0100 |
commit | de5af8efbff8dacd28e6f9eea765c45a22ea7cab (patch) | |
tree | 2cc7670acfedfb6527f993db6045c338f21bb451 /apps/files_sharing/lib | |
parent | c407bb978684f00ce07a4f168d3e380da3812028 (diff) | |
download | nextcloud-server-de5af8efbff8dacd28e6f9eea765c45a22ea7cab.tar.gz nextcloud-server-de5af8efbff8dacd28e6f9eea765c45a22ea7cab.zip |
invalidate mount cache after accepting or renaming federated share
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing/lib')
-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; } |