messages: Use get_user_including_cross_realm in by_pm_with function.

This commit is contained in:
Vishnu Ks 2017-07-19 02:59:50 +05:30 committed by Tim Abbott
parent 7b78224c42
commit fc8b6f69bd
1 changed files with 1 additions and 1 deletions

View File

@ -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)