mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 21:06:31 +03:00
Reduce unwrap and expect usage
This commit is contained in:
@@ -1441,7 +1441,9 @@ async fn create_or_lookup_group(
|
||||
return Ok(None);
|
||||
}
|
||||
|
||||
let grpname = mime_parser.get_header(HeaderDef::ChatGroupName).unwrap();
|
||||
let grpname = mime_parser
|
||||
.get_header(HeaderDef::ChatGroupName)
|
||||
.context("Chat-Group-Name vanished")?;
|
||||
let new_chat_id = ChatId::create_multiuser_record(
|
||||
context,
|
||||
Chattype::Group,
|
||||
|
||||
Reference in New Issue
Block a user