fix(channels): restore reply routing fields after rebase

This commit is contained in:
Chummy 2026-02-17 19:57:45 +08:00
parent 0e5353ee3c
commit 35d9434d83
2 changed files with 2 additions and 1 deletions

View file

@ -344,7 +344,7 @@ impl Channel for DiscordChannel {
} }
let message_id = d.get("id").and_then(|i| i.as_str()).unwrap_or(""); let message_id = d.get("id").and_then(|i| i.as_str()).unwrap_or("");
let _channel_id = d.get("channel_id").and_then(|c| c.as_str()).unwrap_or("").to_string(); let channel_id = d.get("channel_id").and_then(|c| c.as_str()).unwrap_or("").to_string();
let channel_msg = ChannelMessage { let channel_msg = ChannelMessage {
id: if message_id.is_empty() { id: if message_id.is_empty() {

View file

@ -450,6 +450,7 @@ impl LarkChannel {
let channel_msg = ChannelMessage { let channel_msg = ChannelMessage {
id: Uuid::new_v4().to_string(), id: Uuid::new_v4().to_string(),
sender: lark_msg.chat_id.clone(), sender: lark_msg.chat_id.clone(),
reply_to: lark_msg.chat_id.clone(),
content: text, content: text,
channel: "lark".to_string(), channel: "lark".to_string(),
timestamp: std::time::SystemTime::now() timestamp: std::time::SystemTime::now()