feat: Remove trailing '.' from device message about receive_imf failure

This is to avoid from the Android UI treating it as a part of URL.
This commit is contained in:
iequidoo
2026-06-29 14:33:52 -03:00
committed by iequidoo
parent abaa48d0a1
commit b4471f2434
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -380,7 +380,7 @@ def test_receive_imf_failure(acfactory) -> None:
snapshot.text == "❌ Failed to receive a message:" snapshot.text == "❌ Failed to receive a message:"
" Condition failed: `!context.get_config_bool(Config::SimulateReceiveImfError).await?`." " Condition failed: `!context.get_config_bool(Config::SimulateReceiveImfError).await?`."
f" Core version {version}." f" Core version {version}."
" Please report this bug to delta@merlinux.eu or https://support.delta.chat/." " Please report this bug to delta@merlinux.eu or https://support.delta.chat/"
) )
# The failed message doesn't break the IMAP loop. # The failed message doesn't break the IMAP loop.
+3 -1
View File
@@ -1284,7 +1284,9 @@ impl Session {
warn!(context, "receive_imf error: {err:#}."); warn!(context, "receive_imf error: {err:#}.");
let text = format!( let text = format!(
"❌ Failed to receive a message: {err:#}. Core version v{DC_VERSION_STR}. Please report this bug to delta@merlinux.eu or https://support.delta.chat/.", // No trailing '.' to avoid from the Android UI treating it as a part of
// URL.
"❌ Failed to receive a message: {err:#}. Core version v{DC_VERSION_STR}. Please report this bug to delta@merlinux.eu or https://support.delta.chat/",
); );
let mut msg = Message::new_text(text); let mut msg = Message::new_text(text);
add_device_msg(context, None, Some(&mut msg)).await?; add_device_msg(context, None, Some(&mut msg)).await?;