From 75bd4f84a465ea6f8cbecadd82eabde8bdb98f75 Mon Sep 17 00:00:00 2001 From: jkoberg Date: Mon, 30 Dec 2024 13:53:03 +0100 Subject: [PATCH] feat(capabilities): add notification feature toggle Signed-off-by: jkoberg --- changelog/unreleased/notification-feature-toggle.md | 5 +++++ pkg/owncloud/ocs/capabilities.go | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/notification-feature-toggle.md diff --git a/changelog/unreleased/notification-feature-toggle.md b/changelog/unreleased/notification-feature-toggle.md new file mode 100644 index 0000000000..70659cc083 --- /dev/null +++ b/changelog/unreleased/notification-feature-toggle.md @@ -0,0 +1,5 @@ +Enhancement: Notification feature toggle + +Adds a feature toggle for the notification settings. + +https://github.com/cs3org/reva/pull/5023 diff --git a/pkg/owncloud/ocs/capabilities.go b/pkg/owncloud/ocs/capabilities.go index 1f4bcdab6f..8d754cd750 100644 --- a/pkg/owncloud/ocs/capabilities.go +++ b/pkg/owncloud/ocs/capabilities.go @@ -288,7 +288,8 @@ type CapabilitiesFilesSharingFederation struct { // CapabilitiesNotifications holds a list of notification endpoints type CapabilitiesNotifications struct { - Endpoints []string `json:"ocs-endpoints,omitempty" xml:"ocs-endpoints>element,omitempty" mapstructure:"endpoints"` + Endpoints []string `json:"ocs-endpoints,omitempty" xml:"ocs-endpoints>element,omitempty" mapstructure:"endpoints"` + Configurable bool `json:"configurable" xml:"configurable,omitempty" mapstructure:"configurable"` } // CapabilitiesTheme holds theming capabilities