chylex / Discord-History-Tracker

Desktop app & browser script that saves Discord chat history into a file, and an offline viewer that displays the file.
https://dht.chylex.com
MIT License
475 stars 83 forks source link

Group chat cuts off in archive #209

Closed triaddraykin closed 10 months ago

triaddraykin commented 1 year ago

I have an old (2017-2018) group chat that I'm trying to make available offline and preserve the formatting. On both the old html viewer+.txt format and the modern incarnation of the DHT, it cuts off at a certain message that, as far as I can tell, is perfectly ordinary and no different from the rest. Even filtering to specific dates didn't provide the messages. I'm unsure how to explain it further, but I'm willing to provide all files and even invite to the group DM for troubleshooting. Attached is the existing archive. Mindwalkarchive.zip

chylex commented 1 year ago

Do you mean it stops tracking at that message, or something else?

NevyJones commented 1 year ago

Yes, it has also happened to me. I do not know why but it has skipped several days of content and then continue and so on occasion. It only happens in the PC version of the program.

In the web version, it works great... but... it doesn't save the image content.

chylex commented 1 year ago

All DHT really does is scroll up and read messages when Discord loads them, so I can think of two possibilities:

From your comments I don't know if the issue happens consistently for a specific message, or at least a specific channel, when you try to archive them repeatedly. I need more details.

NevyJones commented 1 year ago

I did it twice... but usually skipped days. It only happens with the application.

In the web one it was normal. I can't blame my internet as it loads fast... but... I'm not sure either.

NevyJones commented 1 year ago

perhaps add a manual scrolling speed?

That is to say that it does not scroll up so fast but only after a certain time.

chylex commented 1 year ago

There is no "scrolling speed", DHT scrolls once it sees new messages or when it detects you've reached the beginning of the channel. It's possible there is a bug in either of those, if there is then it needs to get fixed, not worked around by introducing arbitrary optional timers.

Can you check the exact amount of messages it skipped? I'm interested if it's a multiple of 50 or close.

chylex commented 11 months ago

I rewrote how DHT detects when older messages have loaded. Once the app update is released in a few hours, can you please check if the issue is still happening?

chylex commented 10 months ago

Both the app and browser-only version have the updated message detection. Closing as fixed, if you experience the problem again then feel free to comment and reopen.