fix(notify): ignore disabled targets when sending events (#2117)

Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
安正超
2026-03-11 00:37:30 +08:00
committed by GitHub
parent 3df7105dae
commit bb4fbf5ae2
2 changed files with 116 additions and 1 deletions
+1 -1
View File
@@ -355,7 +355,7 @@ impl NotificationSystem {
changed = true;
}
if targets.is_empty() {
config.0.remove(target_type);
config.0.remove(&ttype);
}
}
if !changed {