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.

user_profile: update the streams list row dynamically.

palashb01eee7d18d03fc
diff --git a/web/src/user_profile.js b/web/src/user_profile.js
index 726d3c188a6..481536306d2 100644
--- a/web/src/user_profile.js
+++ b/web/src/user_profile.js
@@ -318,13 +318,6 @@ export function register_click_handlers() {
function removal_success(data) {
if (data.removed.length > 0) {
- // Most of the work for handling the unsubscribe is done
- // by the subscription -> remove event we will get.
- // However, the user profile component has not yet
- // implemented live update, so we do update its
- // UI manually here by removing the stream from this list.
- $stream_row.remove();
-
ui_report.success(
$t_html({defaultMessage: "Unsubscribed successfully!"}),
$alert_box,