Skip to content

Commit

Permalink
fix: download error
Browse files Browse the repository at this point in the history
  • Loading branch information
tangyoha committed Jun 24, 2023
1 parent dc974f0 commit 4e54230
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,13 +576,14 @@ def update_config(self, immediate: bool = True):
range(before_last_read_message_id, value.last_read_message_id + 1)
)
unfinished_ids -= set(value.downloaded_ids)
unfinished_ids -= set({0})

self.chat_download_config[key].ids_to_retry = list(unfinished_ids)

if idx >= len(self.app_data["chat"]):
self.app_data["chat"].append({})

if len(value.downloaded_ids) > 0:
if value.finish_task:
self.config["chat"][idx]["last_read_message_id"] = (
value.last_read_message_id + 1
)
Expand Down

0 comments on commit 4e54230

Please sign in to comment.