Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_fetch: Use strings as dict keys.
Anders Kaseorg36bae2e86cc5
diff --git a/zerver/views/message_fetch.py b/zerver/views/message_fetch.pyindex ac58ab57ed5..5566acf0f62 100644--- a/zerver/views/message_fetch.py+++ b/zerver/views/message_fetch.py@@ -1146,7 +1146,8 @@ def messages_in_narrow_backend(request: HttpRequest, user_profile: UserProfile,topic_matches = row['topic_matches']else:content_matches = topic_matches = []- search_fields[message_id] = get_search_fields(rendered_content, topic_name,- content_matches, topic_matches)+ search_fields[str(message_id)] = get_search_fields(+ rendered_content, topic_name, content_matches, topic_matches,+ )return json_success({"messages": search_fields})