aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorMaksim Sukharev <antreesy.web@gmail.com>2024-10-16 14:58:41 +0200
committerMaksim Sukharev <antreesy.web@gmail.com>2024-10-16 17:31:57 +0200
commit73b34bba7b70d3296ce8eba633a4d9c61cf01904 (patch)
tree8bd1c7c0d7b58bbe93d047658b73cb51763f88ff /apps/files
parent6e7c35d77eb85836a35b6b0c8d8ba24829350066 (diff)
downloadnextcloud-server-fix/45884/accept-notification.tar.gz
nextcloud-server-fix/45884/accept-notification.zip
fix: add notification icon for transfer ownershipfix/45884/accept-notification
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/img/folder-move.svg1
-rw-r--r--apps/files/lib/Notification/Notifier.php4
2 files changed, 5 insertions, 0 deletions
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 @@
+<svg xmlns="http://www.w3.org/2000/svg" id="mdi-folder-move" viewBox="0 0 24 24"><path d="M14,18V15H10V11H14V8L19,13M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z" /></svg> \ No newline at end of file
diff --git a/apps/files/lib/Notification/Notifier.php b/apps/files/lib/Notification/Notifier.php
index 5a82499e36e..89ddbb9b6ec 100644
--- a/apps/files/lib/Notification/Notifier.php
+++ b/apps/files/lib/Notification/Notifier.php
@@ -76,6 +76,10 @@ class Notifier implements INotifier, IDismissableNotifier {
throw new UnknownNotificationException('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),