async media: add ability to upload media asynchronously

Co-authored-by: Tulir Asokan <tulir@maunium.net>
This commit is contained in:
Sumner Evans
2022-03-25 14:49:45 -06:00
parent f8596ef368
commit 601058d61c
6 changed files with 43 additions and 9 deletions
+1
View File
@@ -359,6 +359,7 @@ class Puppet(DBPuppet, BasePuppet):
location=InputPeerPhotoFileLocation(
peer=await self.get_input_entity(source), photo_id=photo.photo_id, big=True
),
async_upload=self.config["homeserver.async_media"],
)
if not file:
return False