summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-03-29 10:35:25 +0200
committerGitHub <noreply@github.com>2022-03-29 10:35:25 +0200
commit262d22f1847f92de91eaeadc143e75e9b752a3ba (patch)
tree0b16f219fe2284a4bac16416b56de4467b4336e8 /apps/files_sharing
parent765999f454c0c5ebd8f2aa693d123f62d104d37a (diff)
parentde5af8efbff8dacd28e6f9eea765c45a22ea7cab (diff)
downloadnextcloud-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.php3
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;
}