From 003a27f6259f11765b9159c168db30ae81151a71 Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 7 Nov 2023 01:19:14 +0000 Subject: [PATCH] refactor: hide ChatId::get_for_contact() from public API --- src/chat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat.rs b/src/chat.rs index cbcdda81d..40abe7681 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -227,7 +227,7 @@ impl ChatId { /// This is an internal API, if **a user action** needs to get a chat /// [`ChatId::create_for_contact`] should be used as this also scales up the /// [`Contact`]'s origin. - pub async fn get_for_contact(context: &Context, contact_id: ContactId) -> Result { + pub(crate) async fn get_for_contact(context: &Context, contact_id: ContactId) -> Result { ChatIdBlocked::get_for_contact(context, contact_id, Blocked::Not) .await .map(|chat| chat.id)