Respect send push proxy notification configuration on test notifications (#20063)
* Respect send push proxy notification configuration on test notifications * Unify notifications check Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
6bad385164
Коммит
50eaec6695
@@ -578,6 +578,10 @@ func (a *App) BuildPushNotificationMessage(contentsConfig string, post *model.Po
|
||||
}
|
||||
|
||||
func (a *App) SendTestPushNotification(deviceID string) string {
|
||||
if !a.canSendPushNotifications() {
|
||||
return "false"
|
||||
}
|
||||
|
||||
msg := &model.PushNotification{
|
||||
Version: "2",
|
||||
Type: model.PushTypeTest,
|
||||
|
||||
Ссылка в новой задаче
Block a user