Add hacky fix for edit reply fallbacks

This commit is contained in:
Tulir Asokan
2019-07-29 19:59:34 +03:00
parent 9a5506d901
commit dd683af5f5
2 changed files with 3 additions and 2 deletions
@@ -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())