From f1d82af19194c768ac00fa6e539586c0c7f21aef Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sun, 19 Feb 2017 15:23:08 -0800 Subject: [PATCH] Include prev_rendered_content_version in edit events. --- zerver/lib/actions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py index 9d5e20e61b..7cfd53dea0 100644 --- a/zerver/lib/actions.py +++ b/zerver/lib/actions.py @@ -2726,6 +2726,7 @@ def do_update_message(user_profile, message, subject, propagate_mode, content, r message.rendered_content_version = bugdown_version event["content"] = content event["rendered_content"] = rendered_content + event['prev_rendered_content_version'] = message.rendered_content_version prev_content = edit_history_event['prev_content'] if Message.content_has_attachment(prev_content) or Message.content_has_attachment(message.content):