mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
message_edit: Do case-insensitive exact match when editing topics.
When doing query for same topic names in a stream, we should do a case-insensitive exact match for the topic, since that's the data model for topics in Zulip.
This commit is contained in:
@@ -108,7 +108,7 @@ def update_messages_for_topic_edit(message: Message,
|
||||
orig_topic_name: str,
|
||||
topic_name: Optional[str],
|
||||
new_stream: Optional[Stream]) -> List[Message]:
|
||||
propagate_query = Q(recipient = message.recipient, subject = orig_topic_name)
|
||||
propagate_query = Q(recipient = message.recipient, subject__iexact = orig_topic_name)
|
||||
if propagate_mode == 'change_all':
|
||||
propagate_query = propagate_query & ~Q(id = message.id)
|
||||
if propagate_mode == 'change_later':
|
||||
|
||||
Reference in New Issue
Block a user