MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / isStateCurrent

Function isStateCurrent

pmcaptcha/pmcaptcha.ts:688–691  ·  view source on GitHub ↗
(state: CaptchaState)

Source from the content-addressed store, hash-verified

686 const lifecycle = getActiveLifecycle();
687 return !!lifecycle && state.generation === lifecycle.generation && !lifecycle.signal.aborted;
688}
689
690function clearCaptchaTimer(state: CaptchaState): void {
691 if (state.timer) {
692 clearTimeout(state.timer);
693 state.timer = null;
694 }

Callers 3

cleanupCaptchaMessagesFunction · 0.85
sendCaptchaFunction · 0.85
handleReplyFunction · 0.85

Calls 1

getActiveLifecycleFunction · 0.85

Tested by

no test coverage detected