mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
stream settings: Use the .show-sender version of email address.
As requested in #13134.
This commit is contained in:
committed by
Tim Abbott
parent
307d8d8758
commit
dfd6771237
@@ -2696,7 +2696,7 @@ def notify_subscriptions_added(user_profile: UserProfile,
|
||||
is_web_public=stream.is_web_public,
|
||||
is_announcement_only=stream.is_announcement_only,
|
||||
color=subscription.color,
|
||||
email_address=encode_email_address(stream),
|
||||
email_address=encode_email_address(stream, show_sender=True),
|
||||
desktop_notifications=subscription.desktop_notifications,
|
||||
audible_notifications=subscription.audible_notifications,
|
||||
push_notifications=subscription.push_notifications,
|
||||
@@ -3557,7 +3557,7 @@ def do_rename_stream(stream: Stream,
|
||||
# date field in all cases.
|
||||
cache_delete_many(
|
||||
to_dict_cache_key_id(message.id) for message in messages)
|
||||
new_email = encode_email_address(stream)
|
||||
new_email = encode_email_address(stream, show_sender=True)
|
||||
|
||||
# We will tell our users to essentially
|
||||
# update stream.name = new_name where name = old_name
|
||||
@@ -4679,6 +4679,8 @@ def gather_subscriptions_helper(user_profile: UserProfile,
|
||||
if not sub["active"] and user_profile.is_guest:
|
||||
subscribers = None
|
||||
|
||||
email_address = encode_email_address_helper(stream["name"], stream["email_token"],
|
||||
show_sender=True)
|
||||
stream_dict = {'name': stream["name"],
|
||||
'in_home_view': not sub["is_muted"],
|
||||
'is_muted': sub["is_muted"],
|
||||
@@ -4699,7 +4701,7 @@ def gather_subscriptions_helper(user_profile: UserProfile,
|
||||
'stream_weekly_traffic': get_average_weekly_stream_traffic(stream["id"],
|
||||
stream["date_created"],
|
||||
recent_traffic),
|
||||
'email_address': encode_email_address_helper(stream["name"], stream["email_token"]),
|
||||
'email_address': email_address,
|
||||
'history_public_to_subscribers': stream['history_public_to_subscribers']}
|
||||
|
||||
if subscribers is not None:
|
||||
|
||||
Reference in New Issue
Block a user