mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 18:06:44 +00:00
settings: Add default typing indicator user settings.
This commit adds two settings to 'SETTINGS / DEFAULT USER SETTINGS': * Let recipients see when a user is typing direct messages * Let recipients see when a user is typing stream messages
This commit is contained in:
committed by
Tim Abbott
parent
0c357f990d
commit
e01ffba143
@@ -34,6 +34,8 @@ export type RealmDefaultSettings = {
|
|||||||
notification_sound: string;
|
notification_sound: string;
|
||||||
pm_content_in_desktop_notifications: boolean;
|
pm_content_in_desktop_notifications: boolean;
|
||||||
presence_enabled: boolean;
|
presence_enabled: boolean;
|
||||||
|
send_private_typing_notifications: boolean;
|
||||||
|
send_stream_typing_notifications: boolean;
|
||||||
realm_name_in_email_notifications_policy: number;
|
realm_name_in_email_notifications_policy: number;
|
||||||
starred_message_counts: boolean;
|
starred_message_counts: boolean;
|
||||||
translate_emoticons: boolean;
|
translate_emoticons: boolean;
|
||||||
|
|||||||
@@ -604,6 +604,12 @@ export const realm_user_settings_defaults_labels = {
|
|||||||
realm_presence_enabled_parens_text: $t({defaultMessage: "invisible mode off"}),
|
realm_presence_enabled_parens_text: $t({defaultMessage: "invisible mode off"}),
|
||||||
realm_enter_sends: $t({defaultMessage: "Enter sends when composing a message"}),
|
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_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
|
// NOTIFICATIONS
|
||||||
|
|||||||
@@ -15,6 +15,16 @@
|
|||||||
<h3 class="inline-block">{{t "Privacy settings" }}</h3>
|
<h3 class="inline-block">{{t "Privacy settings" }}</h3>
|
||||||
{{> settings_save_discard_widget section_name="privacy-setting" show_only_indicator=false }}
|
{{> settings_save_discard_widget section_name="privacy-setting" show_only_indicator=false }}
|
||||||
</div>
|
</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
|
{{> settings_checkbox
|
||||||
setting_name="presence_enabled"
|
setting_name="presence_enabled"
|
||||||
is_checked=settings_object.presence_enabled
|
is_checked=settings_object.presence_enabled
|
||||||
|
|||||||
Reference in New Issue
Block a user