mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 07:26:29 +03:00
fix: Don't reverify contacts by SELF on receipt of a message from another device
Also verify not yet verified contacts w/o setting a verifier for them (in the db it's stored as `verifier_id=id` though) because we don't know who verified them for another device.
This commit is contained in:
@@ -1420,7 +1420,7 @@ fn print_logevent(logevent: &LogEvent) {
|
||||
/// Saves the other account's public key as verified
|
||||
pub(crate) async fn mark_as_verified(this: &TestContext, other: &TestContext) {
|
||||
let contact_id = this.add_or_lookup_contact_id(other).await;
|
||||
mark_contact_id_as_verified(this, contact_id, ContactId::SELF)
|
||||
mark_contact_id_as_verified(this, contact_id, Some(ContactId::SELF))
|
||||
.await
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user