fix(channels): set qq reply_target for strict delta lint

This commit is contained in:
Chummy 2026-02-17 22:43:52 +08:00
parent 14d93c075e
commit 94ec351d73

View file

@ -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()