ignore multipart/signed when replacing message

This commit is contained in:
Son NK 2020-12-03 17:52:11 +01:00
parent 255a7e085a
commit 59daaa3164
1 changed files with 1 additions and 0 deletions

View File

@ -769,6 +769,7 @@ def replace(msg: Message, old, new) -> Message:
content_type.startswith("image/")
or content_type.startswith("video/")
or content_type.startswith("audio/")
or content_type == "multipart/signed"
):
return msg