mirror of
https://github.com/chatmail/core.git
synced 2026-10-01 10:40:52 +03:00
feat!: stop tracking contact verification
Since V2 a contact is its key, there is no address-to-key binding left to verify. The JSONRPC and FFI APIs are unchanged and report nothing as verified. BREAKING CHANGE: the statistics JSON sent to the self-reporting-bot on Android changes: Contacts have `encrypted` instead of `verified` and lose `transitive_chain` properties and message stats have `encrypted` instead of `verified` and `unverified_encrypted`, and securejoin invites lose `already_verified`. The collecting bot stores incoming reports verbatim but analysis will have to make sense of older and newer reports.
This commit is contained in:
@@ -110,7 +110,6 @@ async fn test_key_contacts_migration_autocrypt() -> Result<()> {
|
||||
pgp_bob.fingerprint().unwrap(),
|
||||
pgp_bob.public_key(&t).await?.unwrap().dc_fingerprint()
|
||||
);
|
||||
assert_eq!(pgp_bob.get_verifier_id(&t).await?, None);
|
||||
|
||||
// Hidden address-contact can't be looked up by name.
|
||||
assert!(
|
||||
@@ -149,7 +148,6 @@ async fn test_key_contacts_migration_email1() -> Result<()> {
|
||||
assert_eq!(email_bob.origin, Origin::OutgoingTo);
|
||||
assert_eq!(email_bob.e2ee_avail(&t).await?, false);
|
||||
assert_eq!(email_bob.fingerprint(), None);
|
||||
assert_eq!(email_bob.get_verifier_id(&t).await?, None);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
@@ -183,7 +181,6 @@ async fn test_key_contacts_migration_email2() -> Result<()> {
|
||||
assert_eq!(email_bob.origin, Origin::OutgoingTo);
|
||||
assert_eq!(email_bob.e2ee_avail(&t).await?, false);
|
||||
assert_eq!(email_bob.fingerprint(), None);
|
||||
assert_eq!(email_bob.get_verifier_id(&t).await?, None);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
@@ -227,7 +224,6 @@ async fn test_key_contacts_migration_verified() -> Result<()> {
|
||||
pgp_bob.fingerprint().unwrap(),
|
||||
pgp_bob.public_key(&t).await?.unwrap().dc_fingerprint()
|
||||
);
|
||||
assert_eq!(pgp_bob.get_verifier_id(&t).await?, Some(None));
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user