Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message: Add realm limit to private-message summary query.
Alex Vandiverae822103a7af
diff --git a/zerver/lib/message.py b/zerver/lib/message.pyindex d85f373ff68..5cde4d16fdd 100644--- a/zerver/lib/message.py+++ b/zerver/lib/message.py@@ -1580,6 +1580,7 @@ def get_recent_private_conversations(user_profile: UserProfile) -> Dict[int, DicONm.sender_id = sender_profile.idWHERE+ m.realm_id=%(realm_id)s ANDm.recipient_id=%(my_recipient_id)sORDER BY message_id DESCLIMIT %(conversation_limit)s)@@ -1595,6 +1596,7 @@ def get_recent_private_conversations(user_profile: UserProfile) -> Dict[int, Dic"user_profile_id": user_profile.id,"conversation_limit": RECENT_CONVERSATIONS_LIMIT,"my_recipient_id": my_recipient_id,+ "realm_id": user_profile.realm_id,},)rows = cursor.fetchall()