fix: separate DM and channel bot reply cooldown timers

Single shared _bot_last_reply_ms caused a DM reply to block the
channel bot for 10s and vice versa. Split into _bot_last_dm_reply_ms
and _bot_last_ch_reply_ms so each cooldown is independent.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-05-17 23:05:49 +02:00
co-authored by Claude Sonnet 4.6
parent 571a56e418
commit 9650ba685b
3 changed files with 8 additions and 6 deletions
+2 -1
View File
@@ -234,7 +234,8 @@ private:
uint8_t *sign_data;
uint32_t sign_data_len;
unsigned long dirty_contacts_expiry;
unsigned long _bot_last_reply_ms;
unsigned long _bot_last_dm_reply_ms;
unsigned long _bot_last_ch_reply_ms;
unsigned long _next_auto_advert_ms;
TransportKey send_scope;