From 2ca866b644f5aa6b83bcbb009b6e984c9424779c Mon Sep 17 00:00:00 2001 From: link2xt Date: Wed, 12 Mar 2025 19:03:59 +0000 Subject: [PATCH] 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. --- src/test_utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test_utils.rs b/src/test_utils.rs index 96869ca19..5fe5ab860 100644 --- a/src/test_utils.rs +++ b/src/test_utils.rs @@ -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