diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/notification/action.php | 4 | ||||
-rw-r--r-- | lib/private/notification/iaction.php | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/notification/action.php b/lib/private/notification/action.php index 958b085b38e..8eade697025 100644 --- a/lib/private/notification/action.php +++ b/lib/private/notification/action.php @@ -50,7 +50,7 @@ class Action implements IAction { $this->labelParsed = ''; $this->link = ''; $this->requestType = ''; - $this->icon = ''; + $this->primary = false; } /** @@ -99,6 +99,7 @@ class Action implements IAction { /** * @param $primary bool + * @return $this * @throws \InvalidArgumentException if $primary is invalid * @since 9.0.0 */ @@ -108,6 +109,7 @@ class Action implements IAction { } $this->primary = $primary; + return $this; } /** diff --git a/lib/private/notification/iaction.php b/lib/private/notification/iaction.php index 4aed2e92517..f7366dd4388 100644 --- a/lib/private/notification/iaction.php +++ b/lib/private/notification/iaction.php @@ -62,6 +62,7 @@ interface IAction { /** * @param $primary bool + * @return $this * @throws \InvalidArgumentException if $primary is invalid * @since 9.0.0 */ |