import_realm: Fix docstring of fix_message_rendered_content.

The docstring was misleading talking about the import from non-Zulip
platforms, when this function is also very much applicable for
Zulip-to-Zulip imports.
This commit is contained in:
Mateusz Mandera
2024-05-29 22:35:05 +02:00
committed by Tim Abbott
parent 9d33c94f2d
commit 878d46ea49

View File

@@ -327,8 +327,7 @@ def fix_message_rendered_content(
realm: Realm, sender_map: Dict[int, Record], messages: List[Record]
) -> None:
"""
This function sets the rendered_content of all the messages
after the messages have been imported from a non-Zulip platform.
This function sets the rendered_content of the messages we're importing.
"""
for message in messages:
if message["rendered_content"] is not None: