From c666cf60396a1fe05bc20bacd7bf7c625efaaddc Mon Sep 17 00:00:00 2001 From: git-bruh Date: Thu, 10 Dec 2020 18:05:16 +0530 Subject: [PATCH] Process message again on edit --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 35e0237..9aa4080 100644 --- a/main.py +++ b/main.py @@ -258,7 +258,8 @@ class Callbacks(object): try: if content_dict["m.relates_to"]["rel_type"] == "m.replace": edited_event = content_dict["m.relates_to"]["event_id"] - edited_content = content_dict["m.new_content"]["body"] + edited_content = await self.process_message( + content_dict["m.new_content"]["body"]) webhook_message = message_store[edited_event] await webhook_message.edit(content=edited_content) return