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
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with
3 additions and
0 deletions
-
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; |
|
|
|
} |
|
|
|
|
|
|
|
|