From 1e9bf4ab259e794185d32ecdeb4a63c3273ab2e1 Mon Sep 17 00:00:00 2001 From: Toutsu Date: Wed, 20 May 2026 12:33:24 +0300 Subject: [PATCH] feat(telegram): set source_platform = 'Telegram' on reschedule proposals Ensures Telegram-initiated reschedule proposals are tagged with source_platform so the platform-neutral finalizer can distinguish them from Discord proposals. Co-Authored-By: Claude Opus 4.7 --- .../Sessions/RescheduleSession/InitiateRescheduleHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GmRelay.Bot/Features/Sessions/RescheduleSession/InitiateRescheduleHandler.cs b/src/GmRelay.Bot/Features/Sessions/RescheduleSession/InitiateRescheduleHandler.cs index 2e18ce9..625fb29 100644 --- a/src/GmRelay.Bot/Features/Sessions/RescheduleSession/InitiateRescheduleHandler.cs +++ b/src/GmRelay.Bot/Features/Sessions/RescheduleSession/InitiateRescheduleHandler.cs @@ -83,8 +83,8 @@ public sealed class InitiateRescheduleHandler( // 3. Create proposal in AwaitingTime status await connection.ExecuteAsync( """ - INSERT INTO reschedule_proposals (session_id, proposed_by, status) - VALUES (@SessionId, @GmId, 'AwaitingTime') + INSERT INTO reschedule_proposals (session_id, proposed_by, source_platform, status) + VALUES (@SessionId, @GmId, 'Telegram', 'AwaitingTime') """, new { command.SessionId, GmId = command.TelegramUserId });