user_settings: Add field web_suggest_update_timezone.

This field tracks whether the user should be shown an
alert offering to update their profile time zone to the
time zone of the browser in case they differ.

The field is added to RealmUserDefault and UserProfile
models with a default value of True.

Fixes part of #16957
This commit is contained in:
Kislay Verma
2024-06-14 00:10:05 +05:30
committed by Tim Abbott
parent 143ca5065e
commit 00df8a593d
8 changed files with 77 additions and 1 deletions

View File

@@ -328,6 +328,7 @@ def json_change_settings(
]
| None = None,
web_navigate_to_sent_message: Json[bool] | None = None,
web_suggest_update_timezone: Json[bool] | None = None,
) -> HttpResponse:
# UserProfile object is being refetched here to make sure that we
# do not use stale object from cache which can happen when a