settings: Add push notifications for the followed topics.

This commit makes it possible for users to control
the push notifications for messages sent to followed topics
via a global notification setting.

There is no support for configuring this setting
through the UI yet.
This commit is contained in:
Prakhar Pratyush
2023-05-28 20:33:04 +05:30
committed by Tim Abbott
parent 5e5538886f
commit d73c715dc2
14 changed files with 133 additions and 8 deletions

View File

@@ -196,6 +196,9 @@ def json_change_settings(
enable_followed_topic_email_notifications: Optional[bool] = REQ(
json_validator=check_bool, default=None
),
enable_followed_topic_push_notifications: Optional[bool] = REQ(
json_validator=check_bool, default=None
),
notification_sound: Optional[str] = REQ(default=None),
enable_desktop_notifications: Optional[bool] = REQ(json_validator=check_bool, default=None),
enable_sounds: Optional[bool] = REQ(json_validator=check_bool, default=None),