Skip to content

Commit

Permalink
Merge pull request #11047 from nanaya/static-mode-defaults
Browse files Browse the repository at this point in the history
Specify defaults for medal unlock notification options
  • Loading branch information
notbakaneko authored Feb 28, 2024
2 parents cb5afca + 34f135f commit 352babe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Jobs/Notifications/UserAchievementUnlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@

class UserAchievementUnlock extends BroadcastNotificationBase
{
// Mainly to ensure client always getting the event.
// Also it probably doesn't really make sense to mail the event
// in the first place.
const DELIVERY_MODE_DEFAULTS = ['mail' => false, 'push' => true];

protected $achievement;

public static function getMailGroupingKey(Notification $notification): string
Expand Down

0 comments on commit 352babe

Please sign in to comment.