mirror of https://github.com/zulip/zulip.git
messages: Use get_user_including_cross_realm in by_pm_with function.
This commit is contained in:
parent
7b78224c42
commit
fc8b6f69bd
|
@ -317,7 +317,7 @@ class NarrowBuilder(object):
|
|||
|
||||
# Personals with other user; include both directions.
|
||||
try:
|
||||
narrow_profile = get_user_profile_by_email(operand)
|
||||
narrow_profile = get_user_including_cross_realm(operand, self.user_realm)
|
||||
except UserProfile.DoesNotExist:
|
||||
raise BadNarrowOperator('unknown user ' + operand)
|
||||
|
||||
|
|
Loading…
Reference in New Issue