api!: remove deprecated is_protection_broken

This commit is contained in:
link2xt
2025-08-17 03:33:25 +00:00
committed by l
parent 7da8489635
commit a9aad497fc
6 changed files with 1 additions and 45 deletions

View File

@@ -1920,11 +1920,6 @@ impl Chat {
Ok(is_encrypted)
}
/// Deprecated 2025-07. Returns false.
pub fn is_protection_broken(&self) -> bool {
false
}
/// Returns true if location streaming is enabled in the chat.
pub fn is_sending_locations(&self) -> bool {
self.is_sending_locations

View File

@@ -422,7 +422,7 @@ pub enum Config {
/// Regardless of this setting, `chat.is_protected()` returns true while the key is verified,
/// and when the key changes, an info message is posted into the chat.
/// 0=Nothing else happens when the key changes.
/// 1=After the key changed, `can_send()` returns false and `is_protection_broken()` returns true
/// 1=After the key changed, `can_send()` returns false
/// until `chat_id.accept()` is called.
#[strum(props(default = "0"))]
VerifiedOneOnOneChats,

View File

@@ -881,7 +881,6 @@ async fn assert_verified(this: &TestContext, other: &TestContext, protected: Pro
chat.is_protected(),
protected == ProtectionStatus::Protected
);
assert_eq!(chat.is_protection_broken(), false);
}
async fn enable_verified_oneonone_chats(test_contexts: &[&TestContext]) {