diff --git a/src/receive_imf.rs b/src/receive_imf.rs
index 5cf765eb0f..468b37716c 100644
--- a/src/receive_imf.rs
+++ b/src/receive_imf.rs
@@ -1819,7 +1819,7 @@ async fn lookup_chat_or_create_adhoc_group(
Ok(Some((new_chat_id, new_chat_id_blocked)))
} else if allow_creation {
// Try to create an ad hoc group.
- if let Some(new_chat_id) = create_adhoc_group(
+ create_adhoc_group(
context,
mime_parser,
create_blocked,
@@ -1828,12 +1828,7 @@ async fn lookup_chat_or_create_adhoc_group(
is_partial_download,
)
.await
- .context("Could not create ad hoc group")?
- {
- Ok(Some((new_chat_id, create_blocked)))
- } else {
- Ok(None)
- }
+ .context("Could not create ad hoc group")
} else {
Ok(None)
}
@@ -2508,7 +2503,7 @@ async fn create_adhoc_group(
from_id: ContactId,
to_ids: &[ContactId],
is_partial_download: bool,
-) -> Result