From 893ad06a61d90d91e609adb8fdb25410cf9d9a06 Mon Sep 17 00:00:00 2001 From: iequidoo Date: Tue, 28 Apr 2026 00:33:24 -0300 Subject: [PATCH] fix: Fail receive_imf to not tombstone Iroh-Node-Addr message if webxdc instance isn't found --- src/receive_imf.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/receive_imf.rs b/src/receive_imf.rs index 35b60002e..16ff1fa72 100644 --- a/src/receive_imf.rs +++ b/src/receive_imf.rs @@ -6,7 +6,7 @@ use std::iter; use std::str::FromStr as _; use std::sync::LazyLock; -use anyhow::{Context as _, Result, ensure}; +use anyhow::{Context as _, Result, bail, ensure}; use deltachat_contact_tools::{ ContactAddress, addr_cmp, addr_normalize, may_be_valid_addr, sanitize_bidi_characters, sanitize_single_line, @@ -2065,9 +2065,8 @@ async fn add_parts( } } None => { - warn!( - context, - "Cannot add iroh peer because WebXDC instance does not exist." + bail!( + "Cannot add iroh peer because WebXDC instance {in_reply_to} does not exist (SKIP_DEVICE_MSG)" ); } },