Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream_settings: Update feedback message to include user name.
sujal4a652ed38d4f
diff --git a/web/src/stream_edit_subscribers.js b/web/src/stream_edit_subscribers.jsindex 3fe1e7d9f08..b92d1b61192 100644--- a/web/src/stream_edit_subscribers.js+++ b/web/src/stream_edit_subscribers.js@@ -233,7 +233,16 @@ function remove_subscriber({stream_id, target_user_id, $list_entry}) {if (data.removed.length > 0) {// Remove the user from the subscriber list.$list_entry.remove();- message = $t({defaultMessage: "Unsubscribed successfully!"});++ const user_name = people.get_full_name(target_user_id);+ if (target_user_id === current_user.user_id) {+ message = $t({defaultMessage: "Unsubscribed yourself successfully!"});+ } else {+ message = $t(+ {defaultMessage: "Unsubscribed {user_name} successfully!"},+ {user_name},+ );+ }// The rest of the work is done via the subscription -> remove event we will get} else {message = $t({defaultMessage: "User is already not subscribed."});