Handle audio and video files from Matrix

This commit is contained in:
Tulir Asokan
2018-01-28 21:37:44 +02:00
parent 9ebc7f5d57
commit 007e592525
+1 -1
View File
@@ -262,7 +262,7 @@ class Portal:
reply_to=reply_to)
else:
response = sender.send_message(self.peer, message["body"])
elif type == "m.image" or type == "m.file":
elif type in {"m.image", "m.file", "m.audio", "m.video"}:
file = self.main_intent.download_file(message["url"])
info = message["info"]