fix(bot): skip join-link reminders without links
PR Checks / test-and-build (pull_request) Failing after 20m55s

Prevent offline sessions with empty join links from entering the 5-minute join-link notification flow, omit blank link lines from direct reminders, and add offline persistence/reminder regression coverage.
This commit is contained in:
2026-06-10 12:23:48 +03:00
parent 014b5edd31
commit 7cb5b03cc2
6 changed files with 177 additions and 13 deletions
@@ -81,6 +81,7 @@ public sealed class DbSessionTriggerStore(
JOIN game_groups g ON g.id = s.group_id
WHERE g.platform = @Platform
AND s.status = @Confirmed
AND btrim(s.join_link) <> ''
AND s.scheduled_at - @LeadTime <= @Now
AND (
(g.platform = 'Telegram' AND s.link_message_id IS NULL)