settings: Add UI for changing read receipts realm_user_default.

Fixes #22657.
This commit is contained in:
Sahil Batra 2022-08-10 18:10:39 +05:30 committed by Tim Abbott
parent 894879d1fe
commit 43fb872f3f
2 changed files with 6 additions and 0 deletions

View File

@ -604,6 +604,7 @@ export const realm_user_settings_defaults_labels = {
realm_presence_enabled: $t({defaultMessage: "Display availability to other users when online"}),
realm_enter_sends: $t({defaultMessage: "Enter sends when composing a message"}),
realm_send_read_receipts: $t({defaultMessage: "Let others see when user has read messages"}),
};
// NOTIFICATIONS

View File

@ -21,6 +21,11 @@
label=settings_label.realm_presence_enabled
help_link="/help/status-and-availability"
prefix="realm_"}}
{{> settings_checkbox
setting_name="send_read_receipts"
is_checked=settings_object.send_read_receipts
label=settings_label.realm_send_read_receipts
prefix="realm_"}}
</div>
<div class="form-horizontal other_settings org-subsection-parent">