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>
Этот коммит содержится в:
Daniel Espino García
2022-05-10 12:37:47 +02:00
коммит произвёл GitHub
родитель 6bad385164
Коммит 50eaec6695
4 изменённых файлов: 22 добавлений и 19 удалений

Просмотреть файл

@@ -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,