mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
streams: Hide fake emails in stream creation form.
We hide fake emails in "People to add" section of stream creation form and instead show user id along with specifying that email is hidden.
This commit is contained in:
@@ -13,6 +13,7 @@ import * as loading from "./loading";
|
||||
import {page_params} from "./page_params";
|
||||
import * as peer_data from "./peer_data";
|
||||
import * as people from "./people";
|
||||
import * as settings_data from "./settings_data";
|
||||
import * as stream_data from "./stream_data";
|
||||
import * as stream_settings_data from "./stream_settings_data";
|
||||
import * as stream_settings_ui from "./stream_settings_ui";
|
||||
@@ -312,7 +313,8 @@ export function show_new_stream_modal() {
|
||||
// Add current user on top of list
|
||||
const current_user = people.get_by_user_id(page_params.user_id);
|
||||
all_users.unshift({
|
||||
email: current_user.email,
|
||||
show_email: settings_data.show_email(),
|
||||
email: people.get_visible_email(current_user),
|
||||
user_id: current_user.user_id,
|
||||
full_name: current_user.full_name,
|
||||
checked: true,
|
||||
|
||||
Reference in New Issue
Block a user