Maybe fix encrypted parallel file transfer
This commit is contained in:
@@ -262,8 +262,8 @@ async def parallel_transfer_to_matrix(client: MautrixTelegramClient, intent: Int
|
|||||||
async def encrypted(stream):
|
async def encrypted(stream):
|
||||||
nonlocal decryption_info
|
nonlocal decryption_info
|
||||||
async for chunk in async_encrypt_attachment(stream):
|
async for chunk in async_encrypt_attachment(stream):
|
||||||
if isinstance(chunk, dict):
|
if isinstance(chunk, EncryptedFile):
|
||||||
decryption_info = EncryptedFile.deserialize(chunk)
|
decryption_info = chunk
|
||||||
else:
|
else:
|
||||||
yield chunk
|
yield chunk
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user