settings: Rename signup_notifications_stream realm setting.

This commit renames the realm-level setting
'signup_notifications_stream' to 'signup_announcements_stream'.

The new name reflects better what the setting does.
This commit is contained in:
Prakhar Pratyush
2024-02-07 21:41:43 +05:30
committed by Tim Abbott
parent ab453fbe20
commit ee612dafac
29 changed files with 159 additions and 134 deletions

View File

@@ -240,7 +240,7 @@ export function dispatch_normal_event(event) {
send_welcome_emails: noop,
message_content_allowed_in_email_notifications: noop,
enable_spectator_access: noop,
signup_notifications_stream_id: noop,
signup_announcements_stream_id: noop,
emails_restricted_to_domains: noop,
video_chat_provider: compose_call_ui.update_audio_and_video_chat_button_display,
jitsi_server_url: compose_call_ui.update_audio_and_video_chat_button_display,
@@ -564,9 +564,9 @@ export function dispatch_normal_event(event) {
realm.realm_new_stream_announcements_stream_id = -1;
settings_org.sync_realm_settings("new_stream_announcements_stream_id");
}
if (realm.realm_signup_notifications_stream_id === stream.stream_id) {
realm.realm_signup_notifications_stream_id = -1;
settings_org.sync_realm_settings("signup_notifications_stream_id");
if (realm.realm_signup_announcements_stream_id === stream.stream_id) {
realm.realm_signup_announcements_stream_id = -1;
settings_org.sync_realm_settings("signup_announcements_stream_id");
}
}
stream_list.update_subscribe_to_more_streams_link();