test: use add_or_lookup_email_contact() in get_chat()

This avoids importing the key via vCard
as a side effect of looking for a chat.
This commit is contained in:
link2xt
2025-03-12 19:03:59 +00:00
committed by l
parent ed7dfd6b65
commit 2ca866b644

View File

@@ -720,7 +720,7 @@ impl TestContext {
/// This first creates a contact using the configured details on the other account, then
/// gets the 1:1 chat with this contact.
pub async fn get_chat(&self, other: &TestContext) -> Chat {
let contact = self.add_or_lookup_contact(other).await;
let contact = self.add_or_lookup_email_contact(other).await;
let chat_id = ChatIdBlocked::lookup_by_contact(&self.ctx, contact.id)
.await