feat: Group Monitoring Components, Enable Host Mode && Deprecate reliabilityLevel and unreadCount in notification.yml

This commit is contained in:
icey-yu 2024-12-17 18:29:04 +08:00
parent 9db434ff5c
commit ee3315ccfe

View File

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