feat: add configurable threshold for balance delta notification (#3433)

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
This commit is contained in:
Ben Weeks
2025-11-12 11:36:19 +02:00
committed by GitHub
co-authored by Claude Vlad Stan
parent 1e6e97c12d
commit c89721223f
7 changed files with 14 additions and 12 deletions
+1 -1
View File
@@ -392,7 +392,7 @@ def _is_message_type_enabled(message_type: NotificationType) -> bool:
if message_type == NotificationType.watchdog_check:
return settings.lnbits_notification_watchdog
if message_type == NotificationType.balance_delta:
return settings.notification_balance_delta_changed
return settings.notification_balance_delta_threshold_sats > 0
if message_type == NotificationType.server_start_stop:
return settings.lnbits_notification_server_start_stop
if message_type == NotificationType.server_status: