Skip to content

Commit

Permalink
Release Beta6
Browse files Browse the repository at this point in the history
  • Loading branch information
luke- committed Aug 1, 2023
1 parent 54f93cd commit 83d013c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions components/NotificationTargetProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace humhub\modules\fcmPush\components;

use humhub\modules\fcmPush\models\ConfigureForm;
use humhub\modules\fcmPush\models\FcmUser;
use humhub\modules\fcmPush\Module;
use humhub\modules\fcmPush\services\MessagingService;
use Yii;
Expand All @@ -30,12 +28,16 @@ public function init()
*/
public function handle(BaseNotification $notification, User $user)
{
Yii::$app->i18n->setUserLocale($user);

/** @var Module $module */
$module = Yii::$app->getModule('fcm-push');

(new MessagingService($module->getConfigureForm()))
->processNotification($notification, $user);

Yii::$app->i18n->autosetLocale();

return true;
}

Expand Down
6 changes: 3 additions & 3 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Unreleased
----------------------------

2.0.0-beta.6 (August 1, 2023)
-----------------------------
- Fix #25: Notification is not sent in user's language setting
- Chg #26: Module configuration titles rewording and changing links to buttons

2.0.0-beta.5 (July 14, 2023)
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"humhub": {
"minVersion": "1.13"
},
"version": "2.0.0-beta.5",
"version": "2.0.0-beta.6",
"screenshots": []
}

0 comments on commit 83d013c

Please sign in to comment.