mirror of
https://github.com/chatmail/core.git
synced 2026-05-22 16:26:31 +03:00
refactor: hide ChatId::get_for_contact() from public API
This commit is contained in:
@@ -227,7 +227,7 @@ impl ChatId {
|
|||||||
/// This is an internal API, if **a user action** needs to get a chat
|
/// 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
|
/// [`ChatId::create_for_contact`] should be used as this also scales up the
|
||||||
/// [`Contact`]'s origin.
|
/// [`Contact`]'s origin.
|
||||||
pub async fn get_for_contact(context: &Context, contact_id: ContactId) -> Result<Self> {
|
pub(crate) async fn get_for_contact(context: &Context, contact_id: ContactId) -> Result<Self> {
|
||||||
ChatIdBlocked::get_for_contact(context, contact_id, Blocked::Not)
|
ChatIdBlocked::get_for_contact(context, contact_id, Blocked::Not)
|
||||||
.await
|
.await
|
||||||
.map(|chat| chat.id)
|
.map(|chat| chat.id)
|
||||||
|
|||||||
Reference in New Issue
Block a user