aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Notification
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2016-08-17 19:31:14 +0200
committerGitHub <noreply@github.com>2016-08-17 19:31:14 +0200
commitfe80bb1aff2732bd355ca249d706690c3b4ce386 (patch)
treee35afb993f0c8d5f90c5d57675273f65dd6446f2 /lib/private/Notification
parentec4d127e58ffae125887d13d6183a08749b9e7b8 (diff)
parent3ed05f87695473e667a2e3bc9b2aa17c28d5342f (diff)
downloadnextcloud-server-fe80bb1aff2732bd355ca249d706690c3b4ce386.tar.gz
nextcloud-server-fe80bb1aff2732bd355ca249d706690c3b4ce386.zip
Merge pull request #867 from nextcloud/notification-primary-action-always-first
Make sure the primary action is always the first one
Diffstat (limited to 'lib/private/Notification')
-rw-r--r--lib/private/Notification/Notification.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/Notification/Notification.php b/lib/private/Notification/Notification.php
index 62a48f434fe..9b5877a3058 100644
--- a/lib/private/Notification/Notification.php
+++ b/lib/private/Notification/Notification.php
@@ -397,9 +397,13 @@ class Notification implements INotification {
}
$this->hasPrimaryParsedAction = true;
+
+ // Make sure the primary action is always the first one
+ array_unshift($this->actionsParsed, $action);
+ } else {
+ $this->actionsParsed[] = $action;
}
- $this->actionsParsed[] = $action;
return $this;
}