Closed ankitsmt211 closed 2 months ago
Hi, I wouldn't mind tackling this one. Maybe move the filtering up a bit earlier?
I've created a pull request to address issue #1084. Since there hasn't been much activity on this issue, I decided to work on a solution. It would be great if you could review it and let me know if there are any changes or adjustments needed. I'm open to any feedback or suggestions to improve it. Thanks!
Describe the bug
Pinned messages/threads is a means to provide information in context of channel, but with current setup all threads are archived in questions regardless of state thus making this feature useless
Expected behavior
Bot should ignore pinned threads when archive routine is triggered To Reproduce
Additional context
HelpThreadAutoArchiver#shouldBeArchived
method should skip threads which are pinnedHelpThreadAutoArchiver#shouldBeArchived
should be moved before calling auto archive flow on each thread, it should skip threads usingshouldBeArchived
methodhttps://github.com/Together-Java/TJ-Bot/blob/develop/application/src/main/java/org/togetherjava/tjbot/features/help/HelpThreadAutoArchiver.java