Validates notification settings (Telegram and webhook) when notifications are enabled.
Returns success immediately when the block is disabled — a "notifications off"
config needs no channel — mirroring checkNotificationsOffline so the two
validators agree on the enabled gate.
Iterates NOTIFICATION_CHANNEL_VALIDATORS instead of an if-chain so
adding a new channel (e.g., Slack) does not modify this dispatcher.
Disabled notifications are a no-op: the channel requirement only applies when
enabled is true, so users can persist a "notifications off" block.
Validates notification settings (Telegram and webhook) when notifications are enabled.
Returns success immediately when the block is disabled — a "notifications off" config needs no channel — mirroring
checkNotificationsOfflineso the two validators agree on theenabledgate.Iterates NOTIFICATION_CHANNEL_VALIDATORS instead of an if-chain so adding a new channel (e.g., Slack) does not modify this dispatcher.
Disabled notifications are a no-op: the channel requirement only applies when
enabledis true, so users can persist a "notifications off" block.