Merge branch 'master' into independent-login

This commit is contained in:
Tulir Asokan
2018-02-21 23:36:09 +02:00
4 changed files with 13 additions and 4 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ def _convert_webp(file, to="png"):
async def transfer_file_to_matrix(db, client, intent, location):
if isinstance(location, (Document, InputDocumentFileLocation)):
id = f"{location.id}-{location.version}"
elif not isinstance(location, (FileLocation, InputFileLocation)):
elif isinstance(location, (FileLocation, InputFileLocation)):
id = f"{location.volume_id}-{location.local_id}"
else:
return None