Support extraction visibility via managed hide range

This commit is contained in:
Hao19911125
2026-04-03 13:16:52 +08:00
parent 97e454449b
commit 4e43c0691b
4 changed files with 519 additions and 9 deletions

View File

@@ -466,3 +466,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);
}