Fix set_avatar_from_file()
This commit is contained in:
parent
2b288bdfc6
commit
2754fff0df
|
@ -600,7 +600,7 @@ class MatrixClient(nio.AsyncClient):
|
||||||
if mime.split("/")[0] != "image":
|
if mime.split("/")[0] != "image":
|
||||||
raise BadMimeType(wanted="image/*", got=mime)
|
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)
|
await self.set_avatar(mxc)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user