refactor: remove ProtectionStatus

This commit is contained in:
link2xt
2025-08-20 03:14:37 +00:00
parent 859725e34f
commit f7f8ea876b
6 changed files with 20 additions and 83 deletions

View File

@@ -1790,9 +1790,7 @@ WHERE type=? AND id IN (
// also unblock mailinglist
// if the contact is a mailinglist address explicitly created to allow unblocking
if !new_blocking && contact.origin == Origin::MailinglistAddress {
if let Some((chat_id, _, _)) =
chat::get_chat_id_by_grpid(context, &contact.addr).await?
{
if let Some((chat_id, ..)) = chat::get_chat_id_by_grpid(context, &contact.addr).await? {
chat_id.unblock_ex(context, Nosync).await?;
}
}