login result type: 239, fix #744

This commit is contained in:
Karlatemp 2020-12-21 23:33:09 +08:00
parent 6540b71bbd
commit 27030d150e
No known key found for this signature in database
GPG Key ID: 21FBDDF664FF06F8

View File

@ -323,7 +323,7 @@ internal class WtLogin {
return when (type.toInt()) {
0 -> onLoginSuccess(tlvMap, bot)
2 -> onSolveLoginCaptcha(tlvMap, bot)
160 /*-96*/ -> onUnsafeDeviceLogin(tlvMap)
160, 239 /*-96*/ -> onUnsafeDeviceLogin(tlvMap)
204 /*-52*/ -> onSMSVerifyNeeded(tlvMap, bot)
// 1, 15 -> onErrorMessage(tlvMap) ?: error("Cannot find error message")
else -> {