Closed Rudokhvist closed 5 years ago
I've fixed only expected behaviour:
Key has to be forwarded to all possible bots
Because change of order in distribution is intended and documented in the changelog.
Thanks for report! 🏆
Thank you, I don't care about the actual order as long as all bots are included in it.
Bug report
Upon sending a command to redeem a key to a bot with forwarding and distribution enabled, key does not forwarded to all possible bots. If more than 1 key redeemed, second and following keys forwarded correctly.
Description
I have a bot with forwarding and distribution enabled. I use it to redeem keys in case I don't care which bot will get it. I want ASF to try to redeem the key on all possible bots, it worked before (unsure which version broke it, I update quite often recently), but now first key only forwarded to bots AFTER the current one. For example, if you have bots with names bot1,bot2,bot3,bot4,bot5, and redeem key on bot3, that has both forwarding and distribution on, redeeming attempts will only happen on bot3,bot4,bot5, but not on bot1 and bot2. Probably forwarding and/or distribution logic is broken.
Expected behavior
Key has to be forwarded to all possible bots
Current behavior
Key is forwarded only to bots with names alphabetically sorted AFTER the current bot
Steps to reproduce
Have bots with names bot1,bot2,bot3,bot4,bot5, and redeem key on bot3, that has both forwarding and distribution on.
Full log.txt recorded during reproducing the problem
Global ASF.json config (if using one)
Kollector.json
Additional info
Chat copy (keys are used, so don't worry, that's not a leak):
Please note, first key had 8 redeeming attempts, second key - 10 redeeming attempts (as it should be)