Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
user_events: Update email in people_dict before updating compose state.
Shubham Padia3631ebf3bf59
diff --git a/web/src/user_events.js b/web/src/user_events.jsindex 953a9ee52ae..73129db4281 100644--- a/web/src/user_events.js+++ b/web/src/user_events.js@@ -38,14 +38,13 @@ export const update_person = function update(person) {const user_id = person.user_id;const new_email = person.new_email;+ people.update_email(user_id, new_email);narrow_state.update_email(user_id, new_email);compose_state.update_email(user_id, new_email);if (people.is_my_user_id(person.user_id)) {current_user.email = new_email;}-- people.update_email(user_id, new_email);}if (Object.hasOwn(person, "delivery_email")) {