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: Use the generic code block to set 'enter_sends' value.

Prakhar Pratyush340140954b29
diff --git a/web/src/server_events_dispatch.js b/web/src/server_events_dispatch.js
index 054094019ea..f266f9237a4 100644
--- a/web/src/server_events_dispatch.js
+++ b/web/src/server_events_dispatch.js
@@ -733,6 +733,7 @@ export function dispatch_normal_event(event) {
"send_private_typing_notifications",
"send_read_receipts",
"web_navigate_to_sent_message",
+ "enter_sends",
];
const original_home_view = user_settings.web_home_view;
@@ -851,9 +852,6 @@ export function dispatch_normal_event(event) {
if (event.property === "web_escape_navigates_to_home_view") {
$("#go-to-home-view-hotkey-help").toggleClass("notdisplayed", !event.value);
}
- if (event.property === "enter_sends") {
- user_settings.enter_sends = event.value;
- }
if (event.property === "presence_enabled") {
user_settings.presence_enabled = event.value;
$("#user_presence_enabled").prop("checked", user_settings.presence_enabled);