Add temporary fix for edits being echoed when using matrix puppeting

This commit is contained in:
Tulir Asokan
2019-08-17 18:27:26 +03:00
parent de4c16431d
commit 7d43eb5d2e
+1
View File
@@ -353,6 +353,7 @@ class PortalTelegram(BasePortal, ABC):
# TODO remove this stuff once mautrix-python generates m.new_content
new_content = content.serialize()
new_content["net.maunium.telegram.puppet"] = True
del new_content["m.relates_to"]
content["m.new_content"] = new_content
content.body = f"Edit: {content.body}"