From 94ec351d731008f67574933bdc9e0650e6be55b0 Mon Sep 17 00:00:00 2001 From: Chummy Date: Tue, 17 Feb 2026 22:43:52 +0800 Subject: [PATCH] fix(channels): set qq reply_target for strict delta lint --- src/channels/qq.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/channels/qq.rs b/src/channels/qq.rs index 7ed808a..814288d 100644 --- a/src/channels/qq.rs +++ b/src/channels/qq.rs @@ -349,6 +349,7 @@ impl Channel for QQChannel { let channel_msg = ChannelMessage { id: Uuid::new_v4().to_string(), sender: user_openid.to_string(), + reply_target: chat_id, content: content.to_string(), channel: "qq".to_string(), timestamp: std::time::SystemTime::now() @@ -357,11 +358,7 @@ impl Channel for QQChannel { .as_secs(), }; - // Override the channel message chat_id via sender field - let mut msg = channel_msg; - msg.sender = chat_id; - - if tx.send(msg).await.is_err() { + if tx.send(channel_msg).await.is_err() { tracing::warn!("QQ: message channel closed"); break; } @@ -389,7 +386,8 @@ impl Channel for QQChannel { let channel_msg = ChannelMessage { id: Uuid::new_v4().to_string(), - sender: chat_id, + sender: author_id.to_string(), + reply_target: chat_id, content: content.to_string(), channel: "qq".to_string(), timestamp: std::time::SystemTime::now()