From: Maksim Sukharev Date: Wed, 16 Oct 2024 12:58:41 +0000 (+0200) Subject: fix: add notification icon for transfer ownership X-Git-Tag: v28.0.12rc1~49^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fca5e23375efcc96a2c044bc13a3833a977039a6;p=nextcloud-server.git fix: add notification icon for transfer ownership Signed-off-by: Maksim Sukharev --- diff --git a/apps/files/img/folder-move.svg b/apps/files/img/folder-move.svg new file mode 100644 index 00000000000..349106f4cd9 --- /dev/null +++ b/apps/files/img/folder-move.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/files/lib/Notification/Notifier.php b/apps/files/lib/Notification/Notifier.php index 10954ac9c64..caf707cc6e3 100644 --- a/apps/files/lib/Notification/Notifier.php +++ b/apps/files/lib/Notification/Notifier.php @@ -88,6 +88,10 @@ class Notifier implements INotifier, IDismissableNotifier { throw new \InvalidArgumentException('Unhandled app'); } + $imagePath = $this->urlGenerator->imagePath('files', 'folder-move.svg'); + $iconUrl = $this->urlGenerator->getAbsoluteURL($imagePath); + $notification->setIcon($iconUrl); + return match($notification->getSubject()) { 'transferownershipRequest' => $this->handleTransferownershipRequest($notification, $languageCode), 'transferownershipRequestDenied' => $this->handleTransferOwnershipRequestDenied($notification, $languageCode),