]> source.dussan.org Git - nextcloud-server.git/commit
fix(files): Properly handle denied ownership transfers 45905/head
authorFerdinand Thiessen <opensource@fthiessen.de>
Fri, 14 Jun 2024 15:35:59 +0000 (17:35 +0200)
committerFerdinand Thiessen <opensource@fthiessen.de>
Tue, 25 Jun 2024 16:01:04 +0000 (18:01 +0200)
commit320283b67d487406d1aac94031c459c5baef87bb
tree61439be141f35c406fc236499f8d7fcba472c39e
parentb2dcb8e254d805f176ac4abc1d4e3af1d7bc1c6b
fix(files): Properly handle denied ownership transfers

When the receiver denies the transfer the notification handler was missing,
so no notification was created for the transfer owner.

But also the internal notification was created two times:
1. When rejecting the transfer
2. By the reject function when dismissing the notification

This is fixed by only relying on the dismiss function.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
apps/files/lib/Controller/TransferOwnershipController.php
apps/files/lib/Notification/Notifier.php