From a9d6864f3a3e170a39e6545b05769b15ba3229ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Sun, 20 Oct 2019 13:31:52 +0200 Subject: [PATCH] uploads: Fix a typo. --- matrix/uploads.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matrix/uploads.py b/matrix/uploads.py index 82712e0..0b4e1f8 100644 --- a/matrix/uploads.py +++ b/matrix/uploads.py @@ -84,6 +84,7 @@ class Upload(object): room_id = attr.ib(type=str) filepath = attr.ib(type=str) encrypt = attr.ib(type=bool, default=False) + file_keys = attr.ib(type=Dict, default=None) done = 0 total = 0 @@ -208,7 +209,7 @@ class Upload(object): if self.encrypt: return Render.encrypted_media( - self.conetent_uri, + self.content_uri, self.file_name, self.file_keys["key"]["k"], self.file_keys["hashes"]["sha256"],