mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-12 00:42:59 +00:00
Permit to disable notifications from app settings directly
This fixes issue #89
This commit is contained in:
@@ -82,6 +82,15 @@ class ConfigMapper extends Mapper {
|
||||
}
|
||||
return $limit;
|
||||
}
|
||||
|
||||
public function getNotificationState () {
|
||||
$st = $this->getKey("notification_state");
|
||||
// Default state is 1/enabled
|
||||
if ($st === false) {
|
||||
$st = 1;
|
||||
}
|
||||
return $st;
|
||||
}
|
||||
};
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user