topic: Add recipient_id to fields for message edit saves.

This is preparation for supporting moving messages between streams in
some cases.

It doesn't actually have any functional effect, since flush_message
clears the message unconditionally anyway.
This commit is contained in:
Tim Abbott
2020-02-26 16:12:07 -08:00
parent da79fd206a
commit 49ca7cf717

View File

@@ -104,7 +104,7 @@ def save_message_for_edit_use_case(message: Message) -> None:
message.save(update_fields=[TOPIC_NAME, "content", "rendered_content",
"rendered_content_version", "last_edit_time",
"edit_history", "has_attachment", "has_image",
"has_link"])
"has_link", "recipient_id"])
def user_message_exists_for_topic(user_profile: UserProfile,