Fix replying to replies of forwarded messages

Fixes #93
This commit is contained in:
Tulir Asokan
2018-03-31 19:48:31 +03:00
parent 66d68f6b63
commit 133e4af712
2 changed files with 10 additions and 6 deletions
+4 -1
View File
@@ -45,7 +45,10 @@ def trim_reply_fallback_text(text: str) -> str:
return "\n".join(lines)
html_reply_fallback_regex = re.compile(r"^<blockquote data-mx-reply>[\s\S]+?</blockquote>")
html_reply_fallback_regex = re.compile("^<blockquote data-mx-reply>"
r"[\s\S]+?"
"(</forward></blockquote>)?"
"</blockquote>")
def trim_reply_fallback_html(html: str) -> str: