diff --git a/src/dc_receive_imf.rs b/src/dc_receive_imf.rs index 80654c561..48b8df02b 100644 --- a/src/dc_receive_imf.rs +++ b/src/dc_receive_imf.rs @@ -1194,7 +1194,7 @@ fn create_or_lookup_adhoc_group( // use subject as initial chat name let grpname = mime_parser .get_subject() - .unwrap_or("Unnamed group".to_string()); + .unwrap_or_else(|| "Unnamed group".to_string()); // create group record let new_chat_id: ChatId = create_group_record(