refactor: remove Chattype::Undefined

This commit is contained in:
link2xt
2023-07-31 22:40:10 +00:00
parent 70000d9ebb
commit e6cffd537e
7 changed files with 5 additions and 16 deletions

View File

@@ -897,7 +897,6 @@ impl<'a> MimeFactory<'a> {
let mut meta_part = None;
let send_verified_headers = match chat.typ {
Chattype::Undefined => bail!("Undefined chat type"),
// In single chats, the protection status isn't necessarily the same for both sides,
// so we don't send the Chat-Verified header:
Chattype::Single => false,