Restore extraction visibility for managed hidden messages

This commit is contained in:
Youzini-afk
2026-04-03 14:27:28 +08:00
parent 48c8a7169c
commit 64188c2559
4 changed files with 127 additions and 27 deletions

View File

@@ -546,3 +546,11 @@ export function getHideStateSnapshot() {
scheduled: Boolean(hideState.scheduledTimer),
};
}
export function isInManagedHideRange(index, chat = null) {
if (!Number.isFinite(index) || index < 0) return false;
if (!hideState.managedChatRef) return false;
if (Array.isArray(chat) && chat !== hideState.managedChatRef) return false;
return hideState.managedSystemIndices.has(index);
}