Enh: Added BaseNotification:priority to mark high priority notifications

This commit is contained in:
buddh4 2017-10-10 13:41:33 +02:00
parent 01c2d2f07a
commit 497146a49c
2 changed files with 12 additions and 0 deletions

View File

@ -41,6 +41,7 @@ Important note for LDAP users: There is a new setting "ID Attribute" which shoul
- Enh: Added `humhub:notification:updateCount` js event
- Enh: Show space administrators and moderators in member snippet
- Fix: `humhub\modules\live\Module::getLegitimateContentContainerIds` behaviour with friendship module enabled
- Enh: Added `BaseNotification:priority` to mark high priority notifications
1.2.2 (August 2, 2017)
--------------------------------

View File

@ -66,6 +66,17 @@ abstract class BaseNotification extends SocialActivity
*/
public $recordClass = Notification::class;
/**
* Priority flag, if set to true, this Notification type will be marked as high priority.
* This can be used by a given BaseTarget while handling a Notification.
*
* A MobileTargetProvider for example could use this flag for Android devices to wake up the device out of doze mode.
*
* @var bool if set to true marks this notification type as high priority.
* @since 1.2.3
*/
public $priority = false;
/**
* Returns the notification category instance. If no category class is set (default) the default notification settings
* can't be overwritten.