aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Activity/Settings/FileChanged.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-08-12 01:43:12 +0200
committerRobin Appelman <robin@icewind.nl>2020-08-13 00:01:34 +0200
commit5f58cefbd7898ebc07da7a80b75c98e4350d0cb5 (patch)
treead13ea82f7340ce7e6c9763c4bd9275529d6efff /apps/files/lib/Activity/Settings/FileChanged.php
parenta11769e0e33ab5a33d1f33868f556abb6c2b5dbe (diff)
downloadnextcloud-server-5f58cefbd7898ebc07da7a80b75c98e4350d0cb5.tar.gz
nextcloud-server-5f58cefbd7898ebc07da7a80b75c98e4350d0cb5.zip
merge file activity settings into a single 'favorite changed' item
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files/lib/Activity/Settings/FileChanged.php')
-rw-r--r--apps/files/lib/Activity/Settings/FileChanged.php32
1 files changed, 8 insertions, 24 deletions
diff --git a/apps/files/lib/Activity/Settings/FileChanged.php b/apps/files/lib/Activity/Settings/FileChanged.php
index bf3780a575f..aa684e5acb1 100644
--- a/apps/files/lib/Activity/Settings/FileChanged.php
+++ b/apps/files/lib/Activity/Settings/FileChanged.php
@@ -37,7 +37,7 @@ class FileChanged extends FileActivitySettings {
* @since 11.0.0
*/
public function getName() {
- return $this->l->t('A file or folder has been <strong>changed</strong> or <strong>renamed</strong>');
+ return $this->l->t('A file or folder has been <strong>changed</strong>');
}
/**
@@ -50,35 +50,19 @@ class FileChanged extends FileActivitySettings {
return 1;
}
- /**
- * @return bool True when the option can be changed for the stream
- * @since 11.0.0
- */
- public function canChangeStream() {
- return true;
+ public function canChangeMail() {
+ return false;
}
- /**
- * @return bool True when the option can be changed for the stream
- * @since 11.0.0
- */
- public function isDefaultEnabledStream() {
- return true;
+ public function isDefaultEnabledMail() {
+ return false;
}
- /**
- * @return bool True when the option can be changed for the mail
- * @since 11.0.0
- */
- public function canChangeMail() {
- return true;
+ public function canChangeNotification() {
+ return false;
}
- /**
- * @return bool True when the option can be changed for the stream
- * @since 11.0.0
- */
- public function isDefaultEnabledMail() {
+ public function isDefaultEnabledNotification() {
return false;
}
}