mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 12:56:30 +03:00
feat: send Chat-Verified headers in 1:1 chats
Chat-Verified is going to be useful to upgrade one-way verification to bidirectional verification.
This commit is contained in:
@@ -924,9 +924,7 @@ impl<'a> MimeFactory<'a> {
|
|||||||
let mut meta_part = None;
|
let mut meta_part = None;
|
||||||
|
|
||||||
let send_verified_headers = match chat.typ {
|
let send_verified_headers = match chat.typ {
|
||||||
// In single chats, the protection status isn't necessarily the same for both sides,
|
Chattype::Single => true,
|
||||||
// so we don't send the Chat-Verified header:
|
|
||||||
Chattype::Single => false,
|
|
||||||
Chattype::Group => true,
|
Chattype::Group => true,
|
||||||
// Mailinglists and broadcast lists can actually never be verified:
|
// Mailinglists and broadcast lists can actually never be verified:
|
||||||
Chattype::Mailinglist => false,
|
Chattype::Mailinglist => false,
|
||||||
|
|||||||
Reference in New Issue
Block a user