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:
link2xt
2023-10-09 05:02:58 +00:00
parent b55027fe71
commit 96a89b5bdc

View File

@@ -1265,7 +1265,7 @@ impl Contact {
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)),
None => {
let addr = &self.addr;