mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 06:56:29 +03:00
api!: remove public APIs to check if the chat is protected
This commit is contained in:
@@ -1397,7 +1397,7 @@ impl ChatId {
|
||||
}
|
||||
|
||||
/// Returns true if the chat is protected.
|
||||
pub async fn is_protected(self, context: &Context) -> Result<ProtectionStatus> {
|
||||
pub(crate) async fn is_protected(self, context: &Context) -> Result<ProtectionStatus> {
|
||||
let protection_status = context
|
||||
.sql
|
||||
.query_get_value("SELECT protected FROM chats WHERE id=?", (self,))
|
||||
|
||||
Reference in New Issue
Block a user