mirror of https://github.com/zulip/zulip.git
Rename mit_to_mit -> same_realm_zephyr_user for uniformity and clarity
(imported from commit 74063d6c8bb9e9fbf62c24dcd8a18294b8f7b51f)
This commit is contained in:
parent
cc9fe19a9f
commit
27aaa3b1bf
|
@ -626,7 +626,7 @@ def create_mirrored_message_users(request, user_profile, recipients):
|
||||||
referenced_users.add(email.lower())
|
referenced_users.add(email.lower())
|
||||||
|
|
||||||
if request.client.name == "zephyr_mirror":
|
if request.client.name == "zephyr_mirror":
|
||||||
user_check = mit_to_mit
|
user_check = same_realm_zephyr_user
|
||||||
fullname_function = compute_mit_user_fullname
|
fullname_function = compute_mit_user_fullname
|
||||||
elif request.client.name == "irc_mirror":
|
elif request.client.name == "irc_mirror":
|
||||||
user_check = same_realm_irc_user
|
user_check = same_realm_irc_user
|
||||||
|
@ -650,7 +650,7 @@ def create_mirrored_message_users(request, user_profile, recipients):
|
||||||
sender = get_user_profile_by_email(sender_email)
|
sender = get_user_profile_by_email(sender_email)
|
||||||
return (True, sender)
|
return (True, sender)
|
||||||
|
|
||||||
def mit_to_mit(user_profile, email):
|
def same_realm_zephyr_user(user_profile, email):
|
||||||
# Are the sender and recipient both @mit.edu addresses?
|
# Are the sender and recipient both @mit.edu addresses?
|
||||||
# We have to handle this specially, inferring the domain from the
|
# We have to handle this specially, inferring the domain from the
|
||||||
# e-mail address, because the recipient may not existing in Zulip
|
# e-mail address, because the recipient may not existing in Zulip
|
||||||
|
|
Loading…
Reference in New Issue