mirror of https://github.com/zulip/zulip.git
Include prev_rendered_content_version in edit events.
This commit is contained in:
parent
78b2eaefc9
commit
f1d82af191
|
@ -2726,6 +2726,7 @@ def do_update_message(user_profile, message, subject, propagate_mode, content, r
|
||||||
message.rendered_content_version = bugdown_version
|
message.rendered_content_version = bugdown_version
|
||||||
event["content"] = content
|
event["content"] = content
|
||||||
event["rendered_content"] = rendered_content
|
event["rendered_content"] = rendered_content
|
||||||
|
event['prev_rendered_content_version'] = message.rendered_content_version
|
||||||
|
|
||||||
prev_content = edit_history_event['prev_content']
|
prev_content = edit_history_event['prev_content']
|
||||||
if Message.content_has_attachment(prev_content) or Message.content_has_attachment(message.content):
|
if Message.content_has_attachment(prev_content) or Message.content_has_attachment(message.content):
|
||||||
|
|
Loading…
Reference in New Issue