diff options
author | Maksim Sukharev <antreesy.web@gmail.com> | 2024-10-16 15:01:00 +0200 |
---|---|---|
committer | Maksim Sukharev <antreesy.web@gmail.com> | 2024-10-16 17:31:57 +0200 |
commit | 5be76411fa9cb9b883ae6c0405b44b3b6bc855e7 (patch) | |
tree | 7f2911b1444702541f5d52ffefa9bece05c273cb /apps/files/lib/Controller | |
parent | 5be832344eacb8328600d256c3090671c3f582d2 (diff) | |
download | nextcloud-server-5be76411fa9cb9b883ae6c0405b44b3b6bc855e7.tar.gz nextcloud-server-5be76411fa9cb9b883ae6c0405b44b3b6bc855e7.zip |
fix: dismiss notification only after transfer bg job created
- do not create 'denied' notification if bg job exists
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Diffstat (limited to 'apps/files/lib/Controller')
-rw-r--r-- | apps/files/lib/Controller/TransferOwnershipController.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files/lib/Controller/TransferOwnershipController.php b/apps/files/lib/Controller/TransferOwnershipController.php index a71373baae4..3564b08ad6a 100644 --- a/apps/files/lib/Controller/TransferOwnershipController.php +++ b/apps/files/lib/Controller/TransferOwnershipController.php @@ -140,11 +140,6 @@ class TransferOwnershipController extends OCSController { return new DataResponse([], Http::STATUS_FORBIDDEN); } - $notification = $this->notificationManager->createNotification(); - $notification->setApp('files') - ->setObject('transfer', (string)$id); - $this->notificationManager->markProcessed($notification); - $newTransferOwnership = new TransferOwnershipEntity(); $newTransferOwnership->setNodeName($transferOwnership->getNodeName()); $newTransferOwnership->setFileId($transferOwnership->getFileId()); @@ -156,6 +151,11 @@ class TransferOwnershipController extends OCSController { 'id' => $newTransferOwnership->getId(), ]); + $notification = $this->notificationManager->createNotification(); + $notification->setApp('files') + ->setObject('transfer', (string)$id); + $this->notificationManager->markProcessed($notification); + return new DataResponse([], Http::STATUS_OK); } |