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:
parent
56f676e35d
commit
acb1367f11
@ -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:
|
||||
|
@ -35,9 +35,11 @@ HLoader {
|
||||
item[prop] = value
|
||||
|
||||
recycled()
|
||||
print("r")
|
||||
} else {
|
||||
pageLoader.setSource(componentUrl, properties)
|
||||
window.uiState.page = componentUrl
|
||||
print("X")
|
||||
}
|
||||
|
||||
window.uiState.pageProperties = properties
|
||||
|
Loading…
Reference in New Issue
Block a user