mirror of
https://github.com/chatmail/core.git
synced 2026-05-13 11:56:30 +03:00
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:
@@ -720,7 +720,7 @@ impl TestContext {
|
|||||||
/// This first creates a contact using the configured details on the other account, then
|
/// This first creates a contact using the configured details on the other account, then
|
||||||
/// gets the 1:1 chat with this contact.
|
/// gets the 1:1 chat with this contact.
|
||||||
pub async fn get_chat(&self, other: &TestContext) -> Chat {
|
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)
|
let chat_id = ChatIdBlocked::lookup_by_contact(&self.ctx, contact.id)
|
||||||
.await
|
.await
|
||||||
|
|||||||
Reference in New Issue
Block a user