diff --git a/CHANGELOG.md b/CHANGELOG.md index f3d3633..e1381c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# Version 1.6.6 +Small fix to select correct notification channel + # Version 1.6.5 This update takes advantage on the most recent seat-notification update (>1.1.0). Notifications may now be selected individually: * SeatGroup Sync Event: Dispatched whenever a user group is attached or detached from a role diff --git a/src/Notifications/MissingRefreshTokenNotification.php b/src/Notifications/MissingRefreshTokenNotification.php index 873b72f..2b666d7 100644 --- a/src/Notifications/MissingRefreshTokenNotification.php +++ b/src/Notifications/MissingRefreshTokenNotification.php @@ -1,4 +1,28 @@ via) { + switch($notifiable->notification_channel) { case 'discord': $this->tags = array_merge($this->tags, [ 'discord', diff --git a/src/Notifications/SeatGroupErrorNotification.php b/src/Notifications/SeatGroupErrorNotification.php index 5df3585..f2481c5 100644 --- a/src/Notifications/SeatGroupErrorNotification.php +++ b/src/Notifications/SeatGroupErrorNotification.php @@ -1,4 +1,28 @@ via) { + switch($notifiable->notification_channel) { case 'discord': $this->tags = array_merge($this->tags, [ 'discord', diff --git a/src/Notifications/SeatGroupSyncNotification.php b/src/Notifications/SeatGroupSyncNotification.php index 45f1d79..e1222c0 100644 --- a/src/Notifications/SeatGroupSyncNotification.php +++ b/src/Notifications/SeatGroupSyncNotification.php @@ -1,4 +1,28 @@ via) { + switch($notifiable->notification_channel) { case 'discord': array_push($this->tags, 'discord'); diff --git a/src/config/seatgroups.config.php b/src/config/seatgroups.config.php index 4f1c64c..7725fdf 100644 --- a/src/config/seatgroups.config.php +++ b/src/config/seatgroups.config.php @@ -24,7 +24,7 @@ */ return [ - 'version' => '1.6.5', + 'version' => '1.6.6', ]; //TODO: Update Version