Weird Discord bug after mass deleting messages that Undiscord isn't taking into consideration #450
Replies: 2 comments 6 replies
-
Since Undiscord assumes there are no messages if page 1 is empty, which is false, and there's no interest in caching more than one page for deletion. Then the best solution I have right now is:
|
Beta Was this translation helpful? Give feedback.
-
thank you for the detailed issue, unfortunately these edge cases are hard to test for since I no longer have anything that old to delete, and I can't send messages in the past. I have test accounts but I can only send fresh messages, in order to delete, if you still old have messages and you volunteer to be a test subject, we can try something. I have a new update in the works right now, the code has been tidy up significantly, should be easier to test for a new end condition. That said I haven't thought too much about your suggestion but I will try to take a careful look at it later today if I can. |
Beta Was this translation helpful? Give feedback.
-
In short. After mass-deleting messages, Discord search will act weirdly. If you search for that user, you will get some blank pages, but if you continue to scroll, you will find actual messages. Undiscord seems to still be able to estimate the total number of messages, but if the first page or more are blank, then it will fail to delete any messages and just give up.
But if you set the "before" date to a date that makes the first page have a valid message show up in Discord search, then Undiscord will find these messages and delete them. But after deleting the messages of the first page, and make a new search, Discord must at this poit return a blank first page again.
This search was done with the before date set to 2017-11-04 21:00, and after deleting 25/983 messages, it fails. The last message is dated 2017-11-03 14:04:44. If I retry without changing the date, it will find 983 messages, but 0 to delete, and will stop. If I update the before date to 2017-11-03 14:05, it works again.
The issue is clearly that Discord has for some reason stopped considering deleted messages to be deleted. Undiscord need a way to work around this and still delete messages. It only tries to delete page 1 and assumes Discord has updated the search, which isn't always the caase.
So there are two "solutions", and both wouldn't be bad to implement:
Beta Was this translation helpful? Give feedback.
All reactions