Skip to content

Commit

Permalink
fix for fix of #6
Browse files Browse the repository at this point in the history
  • Loading branch information
nktknshn committed Sep 1, 2020
1 parent 238a69a commit ea966c4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tgmount/tgmount/tgclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,13 @@ async def _inner(offset, limit, *, request_size=BLOCK_SIZE):
raise

logger.debug(f'old file_reference={str(input_location.file_reference)}')
input_location.file_reference = msg.media.document.file_reference
logger.debug(f'received={str(refetched_msg.media.document.file_reference)}')

input_location.file_reference = refetched_msg.media.document.file_reference

logger.debug(f'new file_reference={str(input_location.file_reference)}')

chunk = await _inner(offset, limit, request_size=request_size)
chunk = await self.get_file_chunk(input_location, offset, limit, request_size=request_size)

return chunk

Expand Down

0 comments on commit ea966c4

Please sign in to comment.