fix(core): throw unexpected errors in .start()

This commit is contained in:
alina 🌸 2024-09-29 00:10:30 +03:00
parent 04368ec2a0
commit b01a99265b
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -140,6 +140,8 @@ export async function start(
if (tl.RpcError.is(e)) {
if (e.text === 'SESSION_PASSWORD_NEEDED') has2fa = true
else if (e.text !== 'AUTH_KEY_UNREGISTERED') throw e
} else {
throw e
}
}