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