Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #72 from herpaderpaldent/development
Browse files Browse the repository at this point in the history
Small hotfix
  • Loading branch information
herpaderpaldent authored Feb 5, 2019
2 parents 8c16a1b + 6b1750c commit b3087cd
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
26 changes: 25 additions & 1 deletion src/Notifications/MissingRefreshTokenNotification.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
<?php
/**
* MIT License.
*
* Copyright (c) 2019. Felix Huber
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

/**
* Created by PhpStorm.
* * User: Herpaderp Aldent
Expand Down Expand Up @@ -55,7 +79,7 @@ public function __construct(User $user)
public function via($notifiable)
{

switch($notifiable->via) {
switch($notifiable->notification_channel) {
case 'discord':
$this->tags = array_merge($this->tags, [
'discord',
Expand Down
26 changes: 25 additions & 1 deletion src/Notifications/SeatGroupErrorNotification.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
<?php
/**
* MIT License.
*
* Copyright (c) 2019. Felix Huber
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

/**
* Created by PhpStorm.
* * User: Herpaderp Aldent
Expand Down Expand Up @@ -52,7 +76,7 @@ public function __construct(User $user, string $message)
public function via($notifiable)
{

switch($notifiable->via) {
switch($notifiable->notification_channel) {
case 'discord':
$this->tags = array_merge($this->tags, [
'discord',
Expand Down
26 changes: 25 additions & 1 deletion src/Notifications/SeatGroupSyncNotification.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
<?php
/**
* MIT License.
*
* Copyright (c) 2019. Felix Huber
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

/**
* Created by PhpStorm.
* * User: Herpaderp Aldent
Expand Down Expand Up @@ -65,7 +89,7 @@ public function __construct(Group $group, array $sync)
public function via($notifiable)
{

switch($notifiable->via) {
switch($notifiable->notification_channel) {
case 'discord':
array_push($this->tags, 'discord');

Expand Down
2 changes: 1 addition & 1 deletion src/config/seatgroups.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/

return [
'version' => '1.6.5',
'version' => '1.6.6',
];

//TODO: Update Version

0 comments on commit b3087cd

Please sign in to comment.