From ee3315ccfed939e0f13c8473cd9350e5021d5a6e Mon Sep 17 00:00:00 2001 From: icey-yu <1186114839@qq.com> Date: Tue, 17 Dec 2024 18:29:04 +0800 Subject: [PATCH] feat: Group Monitoring Components, Enable Host Mode && Deprecate reliabilityLevel and unreadCount in notification.yml --- pkg/common/config/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/config/parse.go b/pkg/common/config/parse.go index 08f82ac7d..ea62c1de0 100644 --- a/pkg/common/config/parse.go +++ b/pkg/common/config/parse.go @@ -61,7 +61,7 @@ func GetProjectRoot() (string, error) { func GetOptionsByNotification(cfg NotificationConfig) msgprocessor.Options { opts := msgprocessor.NewOptions() - if cfg.UnreadCount { + if cfg.IsSendMsg { opts = msgprocessor.WithOptions(opts, msgprocessor.WithUnreadCount(true)) } if cfg.OfflinePush.Enable {