Fix image upload without thumbnail
This commit is contained in:
parent
26fe8c4a09
commit
7595c522c4
|
@ -631,6 +631,9 @@ class MatrixClient(nio.AsyncClient):
|
|||
path = Path(await path() if callable(path) else path)
|
||||
encrypt = room_id in self.encrypted_rooms
|
||||
|
||||
thumb_crypt_dict: Dict[str, Any] = {}
|
||||
crypt_dict: Dict[str, Any] = {}
|
||||
|
||||
try:
|
||||
size = path.resolve().stat().st_size
|
||||
except (PermissionError, FileNotFoundError):
|
||||
|
|
Loading…
Reference in New Issue
Block a user