Skip to content

Fix notifications_enabled to control APNs token, not Telegram#123

Merged
wtfloris merged 2 commits intomasterfrom
fix/api-notifications-toggle
Mar 10, 2026
Merged

Fix notifications_enabled to control APNs token, not Telegram#123
wtfloris merged 2 commits intomasterfrom
fix/api-notifications-toggle

Conversation

@wtfloris
Copy link
Owner

@wtfloris wtfloris commented Mar 9, 2026

Summary

  • notifications_enabled in POST /api/filters now clears apns_token when false instead of modifying telegram_enabled
  • GET /api/filters now returns whether apns_token is set, not telegram_enabled
  • telegram_enabled is never touched by the iOS API — it's managed exclusively by the Telegram bot

Test plan

  • POST /api/filters with notifications_enabled: false → verify apns_token is cleared, telegram_enabled unchanged
  • POST /api/filters with notifications_enabled: true → verify apns_token preserved
  • GET /api/filters → verify notifications_enabled reflects APNs token presence

🤖 Generated with Claude Code

wtfloris and others added 2 commits March 9, 2026 22:21
…egram flag

The iOS API notifications toggle was incorrectly modifying telegram_enabled,
which is managed separately by the Telegram bot. Now it clears the apns_token
when disabled and leaves it unchanged when enabled.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@wtfloris wtfloris merged commit a2b6c7c into master Mar 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant