Fix warnings when uploading to non-E2E room
Fix these: <Unknown File>: media_crypt_dict is undefined. Adding an object with a undefined member does not create a role for it.
This commit is contained in:
@@ -1426,7 +1426,7 @@ class MatrixClient(nio.AsyncClient):
|
||||
filesize = filesize,
|
||||
)
|
||||
|
||||
return UploadReturn(response.content_uri, mime, decryption_dict)
|
||||
return UploadReturn(response.content_uri, mime, decryption_dict or {})
|
||||
|
||||
|
||||
async def set_avatar_from_file(self, path: Union[Path, str]) -> None:
|
||||
|
Reference in New Issue
Block a user