(client: TelegramClient, userId: number, state: CaptchaState)
| 713 | if (!current || current.signal.aborted) return null; |
| 714 | runtimeLifecycle = current; |
| 715 | runtimeGeneration = current.generation; |
| 716 | return current; |
| 717 | } |
| 718 | |
| 719 | function isStateCurrent(state: CaptchaState): boolean { |
| 720 | const lifecycle = getActiveLifecycle(); |
| 721 | return !!lifecycle && state.generation === lifecycle.generation && !lifecycle.signal.aborted; |
| 722 | } |
| 723 | |
| 724 | function clearCaptchaTimer(state: CaptchaState): void { |
no test coverage detected