aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Activity
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-07-21 17:40:22 +0200
committerRobin Appelman <robin@icewind.nl>2020-07-21 17:40:22 +0200
commitaa051875f9588306c9636e3622518fab3e942f5e (patch)
tree681a1e5993b53e407cd3a929b2ac5f614547fbf7 /lib/public/Activity
parentfb5ae20722a29890535296c8871a2edf4201289d (diff)
downloadnextcloud-server-aa051875f9588306c9636e3622518fab3e942f5e.tar.gz
nextcloud-server-aa051875f9588306c9636e3622518fab3e942f5e.zip
improve default notification fallback
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/public/Activity')
-rw-r--r--lib/public/Activity/ActivitySettings.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/Activity/ActivitySettings.php b/lib/public/Activity/ActivitySettings.php
index c25e8d2c9f0..4c96b831992 100644
--- a/lib/public/Activity/ActivitySettings.php
+++ b/lib/public/Activity/ActivitySettings.php
@@ -74,6 +74,6 @@ abstract class ActivitySettings {
* @since 20.0.0
*/
public function isDefaultEnabledNotification() {
- return $this->isDefaultEnabledMail();
+ return $this->isDefaultEnabledMail() && !$this->canChangeMail();
}
}