Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
check_message: Rename user_profiles to recipient_users.
bedoc1d09a2a1b26
diff --git a/zerver/actions/message_send.py b/zerver/actions/message_send.pyindex dcf926dec2d..75ef022cdec 100644--- a/zerver/actions/message_send.py+++ b/zerver/actions/message_send.py@@ -1921,17 +1921,17 @@ def check_message(raise TopicsNotAllowedError(empty_topic_display_name)elif addressee.is_private():- user_profiles = addressee.user_profiles()+ recipient_users = addressee.user_profiles()mirror_message = client.name in ["irc_mirror","jabber_mirror","JabberMirror",]- check_sender_can_access_recipients(sender, user_profiles)+ check_sender_can_access_recipients(sender, recipient_users)recipients_for_user_creation_events = get_recipients_for_user_creation_events(- realm, sender, user_profiles+ realm, sender, recipient_users)# API super-users who set the `forged` flag are allowed to@@ -1940,13 +1940,13 @@ def check_message(forwarded_mirror_message = mirror_message and not forgedtry:recipient = recipient_for_user_profiles(- user_profiles, forwarded_mirror_message, forwarder_user_profile, sender+ recipient_users, forwarded_mirror_message, forwarder_user_profile, sender)except ValidationError as e:assert isinstance(e.messages[0], str)raise JsonableError(e.messages[0])- check_can_send_direct_message(realm, sender, user_profiles, recipient)+ check_can_send_direct_message(realm, sender, recipient_users, recipient)else:# This is defensive code--Addressee already validates# the message type.