Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
minor: Ask for recipient_id, not recipient.
Steve Howell65dbee48378e
diff --git a/zerver/lib/topic.py b/zerver/lib/topic.pyindex f6518118d6e..5f9867327d0 100644--- a/zerver/lib/topic.py+++ b/zerver/lib/topic.py@@ -95,11 +95,11 @@ def save_message_for_edit_use_case(message: Message) -> None:def user_message_exists_for_topic(user_profile: UserProfile,- recipient: Recipient,+ recipient_id: int,topic_name: str) -> bool:return UserMessage.objects.filter(user_profile=user_profile,- message__recipient=recipient,+ message__recipient_id=recipient_id,message__subject__iexact=topic_name,).exists()diff --git a/zerver/views/message_flags.py b/zerver/views/message_flags.pyindex 2a3ca48de12..dfd415d8b96 100644--- a/zerver/views/message_flags.py+++ b/zerver/views/message_flags.py@@ -71,7 +71,7 @@ def mark_topic_as_read(request: HttpRequest,if topic_name:topic_exists = user_message_exists_for_topic(user_profile=user_profile,- recipient=recipient,+ recipient_id=stream.recipient_id,topic_name=topic_name,)