diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/img/folder-move.svg | 1 | ||||
-rw-r--r-- | apps/files/lib/Notification/Notifier.php | 4 |
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), |