Merge branch 'master' into mautrix-0.4

This commit is contained in:
Tulir Asokan
2019-08-03 21:22:38 +03:00
6 changed files with 67 additions and 10 deletions
@@ -169,7 +169,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())