mirror of
https://github.com/chatmail/core.git
synced 2026-05-14 12:26:31 +03:00
fix: return verifier contacts regardless of their origin
Previously `Origin::AddressBook` was required, resulting in a lot of "Could not lookup contact with address ... which introduced ..." warnings.
This commit is contained in:
@@ -1265,7 +1265,7 @@ impl Contact {
|
|||||||
return Ok(Some(ContactId::SELF));
|
return Ok(Some(ContactId::SELF));
|
||||||
}
|
}
|
||||||
|
|
||||||
match Contact::lookup_id_by_addr(context, &verifier_addr, Origin::AddressBook).await? {
|
match Contact::lookup_id_by_addr(context, &verifier_addr, Origin::Unknown).await? {
|
||||||
Some(contact_id) => Ok(Some(contact_id)),
|
Some(contact_id) => Ok(Some(contact_id)),
|
||||||
None => {
|
None => {
|
||||||
let addr = &self.addr;
|
let addr = &self.addr;
|
||||||
|
|||||||
Reference in New Issue
Block a user