mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
user profile modal: Hide email under hidden email-address-visibility case.
When email address visibility is set to everyone, there is no change in behavior, but when it is set to "admins-only", we don't show any email in user profile modal (just like popovers) for everyone but admins.
This commit is contained in:
committed by
Tim Abbott
parent
b1318edbea
commit
37f10509f8
@@ -304,7 +304,7 @@ exports.show_user_profile = function (user) {
|
|||||||
|
|
||||||
var args = {
|
var args = {
|
||||||
full_name: user.full_name,
|
full_name: user.full_name,
|
||||||
email: user.email,
|
email: get_visible_email(user),
|
||||||
profile_data: profile_data,
|
profile_data: profile_data,
|
||||||
user_avatar: "avatar/" + user.email + "/medium",
|
user_avatar: "avatar/" + user.email + "/medium",
|
||||||
is_me: people.is_current_user(user.email),
|
is_me: people.is_current_user(user.email),
|
||||||
|
|||||||
Reference in New Issue
Block a user