From d388370c3b4bd50d1ad7668aef9000bd54a8c442 Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Fri, 5 Jul 2024 09:47:40 +0200 Subject: feat(files_sharing): implement IShareProviderWithNotification and refactor sendMailNotification Signed-off-by: skjnldsv --- lib/public/Share/IShare.php | 4 ++-- .../Share/IShareProviderWithNotification.php | 24 ++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 lib/public/Share/IShareProviderWithNotification.php (limited to 'lib/public/Share') diff --git a/lib/public/Share/IShare.php b/lib/public/Share/IShare.php index 91eebd3afa9..fe5e7eb47dd 100644 --- a/lib/public/Share/IShare.php +++ b/lib/public/Share/IShare.php @@ -564,7 +564,7 @@ interface IShare { public function getShareTime(); /** - * Set if the recipient is informed by mail about the share. + * Set if the recipient should be informed by mail about the share. * * @param bool $mailSend * @return \OCP\Share\IShare The modified object @@ -573,7 +573,7 @@ interface IShare { public function setMailSend($mailSend); /** - * Get if the recipient informed by mail about the share. + * Get if the recipient should be informed by mail about the share. * * @return bool * @since 9.0.0 diff --git a/lib/public/Share/IShareProviderWithNotification.php b/lib/public/Share/IShareProviderWithNotification.php new file mode 100644 index 00000000000..8a595f46dfd --- /dev/null +++ b/lib/public/Share/IShareProviderWithNotification.php @@ -0,0 +1,24 @@ +