Skip to content

Commit 3da47fb

Browse files
committed
chore: remove dead code and fix comment
Signed-off-by: Tomás Migone <tomasmigone@gmail.com>
1 parent 4b8a6b5 commit 3da47fb

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

‎crates/zeroclaw-channels/src/whatsapp_web.rs‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,9 +1125,6 @@ impl Channel for WhatsAppWebChannel {
11251125
is_group,
11261126
mapped_phone.as_deref(),
11271127
);
1128-
if reply_target != chat {
1129-
::zeroclaw_log::record!(DEBUG, ::zeroclaw_log::Event::new(module_path!(), ::zeroclaw_log::Action::Note).with_attrs(::serde_json::json!({"from": chat, "to": reply_target})), "LID→phone reply target");
1130-
}
11311128

11321129
// ── Personal-mode chat-type policy filtering ──
11331130
if wa_mode == zeroclaw_config::schema::WhatsAppWebMode::Personal {
@@ -1305,9 +1302,9 @@ impl Channel for WhatsAppWebChannel {
13051302
channel: "whatsapp".to_string(),
13061303
channel_alias: Some((*alias).clone()),
13071304
sender: normalized.clone(),
1308-
// Reply to the originating chat JID (DM or group).
1309-
// For self-chat with LID JIDs, this is the
1310-
// resolved phone JID (see above).
1305+
// Reply to the originating chat JID (DM or group),
1306+
// passed through unchanged (library handles
1307+
// LID addressing internally).
13111308
reply_target,
13121309
content,
13131310
timestamp: chrono::Utc::now().timestamp() as u64,

0 commit comments

Comments
 (0)