Ignore Riot web brokenness in edits

This commit is contained in:
Tulir Asokan
2019-09-03 00:22:35 +03:00
parent d6294ebb45
commit 00faab2213
@@ -170,7 +170,9 @@ class MatrixParser:
@classmethod
def node_to_tmessage(cls, node: HTMLNode, ctx: RecursionContext) -> TelegramMessage:
if node.tag == "ol":
if node.tag == "mx-reply":
return TelegramMessage("")
elif node.tag == "ol":
return cls.list_to_tmessage(node, ctx)
elif node.tag == "ul":
return cls.list_to_tmessage(node, ctx.enter_list())