Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Add default typing indicator user settings.

Prakhar Pratyushe01ffba14390
diff --git a/web/src/realm_user_settings_defaults.ts b/web/src/realm_user_settings_defaults.ts
index 55e1770c49b..55b232da146 100644
--- a/web/src/realm_user_settings_defaults.ts
+++ b/web/src/realm_user_settings_defaults.ts
@@ -34,6 +34,8 @@ export type RealmDefaultSettings = {
notification_sound: string;
pm_content_in_desktop_notifications: boolean;
presence_enabled: boolean;
+ send_private_typing_notifications: boolean;
+ send_stream_typing_notifications: boolean;
realm_name_in_email_notifications_policy: number;
starred_message_counts: boolean;
translate_emoticons: boolean;
diff --git a/web/src/settings_config.ts b/web/src/settings_config.ts
index 940d9f48fc3..3f15c5f3df1 100644
--- a/web/src/settings_config.ts
+++ b/web/src/settings_config.ts
@@ -604,6 +604,12 @@ export const realm_user_settings_defaults_labels = {
realm_presence_enabled_parens_text: $t({defaultMessage: "invisible mode off"}),
realm_enter_sends: $t({defaultMessage: "Enter sends when composing a message"}),
realm_send_read_receipts: $t({defaultMessage: "Allow other users to view read receipts"}),
+ realm_send_private_typing_notifications: $t({
+ defaultMessage: "Let recipients see when a user is typing direct messages",
+ }),
+ realm_send_stream_typing_notifications: $t({
+ defaultMessage: "Let recipients see when a user is typing stream messages",
+ }),
};
// NOTIFICATIONS
diff --git a/web/templates/settings/organization_user_settings_defaults.hbs b/web/templates/settings/organization_user_settings_defaults.hbs
index aaf3888c4d3..7bc99ac23df 100644
--- a/web/templates/settings/organization_user_settings_defaults.hbs
+++ b/web/templates/settings/organization_user_settings_defaults.hbs
@@ -15,6 +15,16 @@
<h3 class="inline-block">{{t "Privacy settings" }}</h3>
{{> settings_save_discard_widget section_name="privacy-setting" show_only_indicator=false }}
</div>
+ {{> settings_checkbox
+ setting_name="send_private_typing_notifications"
+ is_checked=settings_object.send_private_typing_notifications
+ label=settings_label.realm_send_private_typing_notifications
+ prefix="realm_"}}
+ {{> settings_checkbox
+ setting_name="send_stream_typing_notifications"
+ is_checked=settings_object.send_stream_typing_notifications
+ label=settings_label.realm_send_stream_typing_notifications
+ prefix="realm_"}}
{{> settings_checkbox
setting_name="presence_enabled"
is_checked=settings_object.presence_enabled