From 2754fff0df545c06a24bfaf9376c1ded0692c9c4 Mon Sep 17 00:00:00 2001 From: miruka Date: Tue, 26 Nov 2019 15:52:04 -0400 Subject: [PATCH] Fix set_avatar_from_file() --- src/python/matrix_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/matrix_client.py b/src/python/matrix_client.py index 1afb685e..1d898d53 100644 --- a/src/python/matrix_client.py +++ b/src/python/matrix_client.py @@ -600,7 +600,7 @@ class MatrixClient(nio.AsyncClient): if mime.split("/")[0] != "image": raise BadMimeType(wanted="image/*", got=mime) - mxc, *_ = await self.upload_file(path, mime, Path(path).name) + mxc, *_ = await self.upload(path, mime, Path(path).name) await self.set_avatar(mxc)