Process message again on edit
This commit is contained in:
parent
cf2358dbe8
commit
c666cf6039
1 changed files with 2 additions and 1 deletions
3
main.py
3
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
|
||||
|
|
Loading…
Reference in a new issue