Fix set_avatar_from_file()
This commit is contained in:
		@@ -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)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user