Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream_settings_components: Don't return result of ajax calls.
evykassireraa0af2277a37
diff --git a/web/src/stream_settings_components.js b/web/src/stream_settings_components.jsindex e7024474a88..de4f11b49cc 100644--- a/web/src/stream_settings_components.js+++ b/web/src/stream_settings_components.js@@ -147,7 +147,7 @@ export function ajaxSubscribe(stream, color, $stream_row) {if ($stream_row !== undefined) {display_subscribe_toggle_spinner($stream_row);}- return channel.post({+ channel.post({url: "/json/users/me/subscriptions",data: {subscriptions: JSON.stringify([{name: stream, color}])},success(_resp, _statusText, xhr) {@@ -191,7 +191,7 @@ function ajaxUnsubscribe(sub, $stream_row) {if ($stream_row !== undefined) {display_subscribe_toggle_spinner($stream_row);}- return channel.del({+ channel.del({url: "/json/users/me/subscriptions",data: {subscriptions: JSON.stringify([sub.name])},success() {