From 48f671a3144c3399e889bf8476408f6679eb0f4d Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 10 Nov 2016 20:50:34 -0800 Subject: [PATCH] same_realm_jabber_user: Remove old ist.mit.edu hack. This is no longer in use. --- zerver/views/messages.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/zerver/views/messages.py b/zerver/views/messages.py index e9c3aa6dbd..606607e6c4 100644 --- a/zerver/views/messages.py +++ b/zerver/views/messages.py @@ -780,11 +780,9 @@ def same_realm_jabber_user(user_profile, email): return False domain = resolve_email_to_domain(email) - # The ist.mit.edu realm uses mit.edu email addresses so that their accounts - # can receive mail. - if user_profile.realm.domain == 'ist.mit.edu' and domain == 'mit.edu': - return True + # If your Jabber users have a different email domain than the + # Zulip users, this is where you would do any translation. return user_profile.realm.domain == domain # We do not @require_login for send_message_backend, since it is used