call sqlite-plugin in run-core

This commit is contained in:
geekgeekrun
2024-03-17 16:15:31 +08:00
parent 6649691025
commit ed822d7cc4
6 changed files with 49 additions and 12 deletions
@@ -113,8 +113,6 @@ export async function mainLoop (hooks) {
hooks.pageLoaded?.call()
let userInfoResponse = await userInfoPromise
hooks.userInfoResponse?.call(userInfoResponse)
if (userInfoResponse.code !== 0) {
autoStartChatEventBus.emit('LOGIN_STATUS_INVALID', {
userInfoResponse
@@ -123,6 +121,7 @@ export async function mainLoop (hooks) {
throw new Error("LOGIN_STATUS_INVALID")
} else {
await storeStorage(page).catch(() => void 0)
await hooks.userInfoResponse?.promise(userInfoResponse)
}
// check set security question tip modal