Browse Source

invalidate mount cache after accepting or renaming federated share

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/31711/head
Robin Appelman 4 years ago
parent
commit
de5af8efbf
No known key found for this signature in database GPG Key ID: 42B69D8A64526EFB
  1. 3
      apps/files_sharing/lib/External/Manager.php

3
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;
}

Loading…
Cancel
Save