mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
Readd a default for enable_sounds in json_change_settings.
Previously a default was missing from this function, which resulted in users being unable to change their settings if they tried to disable sounds. (imported from commit 2dae67dcb2e8cb986abb6dee9659be2192993dd9)
This commit is contained in:
parent
237b1077ed
commit
e18d76f4dd
@ -1285,7 +1285,8 @@ def json_change_settings(request, user_profile, full_name=REQ,
|
||||
# because browsers POST nothing for an unchecked checkbox
|
||||
enable_desktop_notifications=REQ(converter=lambda x: x == "on",
|
||||
default=False),
|
||||
enable_sounds=REQ(converter=lambda x: x == "on"),
|
||||
enable_sounds=REQ(converter=lambda x: x == "on",
|
||||
default=False),
|
||||
enable_offline_email_notifications=REQ(converter=lambda x: x == "on",
|
||||
default=False)):
|
||||
if new_password != "" or confirm_password != "":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user