chore: remove the option to trigger transition from the UI (#2489)

This commit is contained in:
Karol Sójko
2023-09-12 09:25:05 +02:00
committed by GitHub
parent e50cc591c0
commit d6a3e69d8c
14 changed files with 1 additions and 251 deletions

View File

@@ -245,8 +245,6 @@ export async function awaitFunctionInvokation(object, functionName) {
})
}
export const ServerTransitionDelay = 1.5
/**
* Signing out of an application deinits it.
* A new one must be created.
@@ -254,7 +252,6 @@ export const ServerTransitionDelay = 1.5
export async function signOutApplicationAndReturnNew(application) {
const isRealCrypto = application.crypto instanceof SNWebCrypto
await application.user.signOut()
await sleep(ServerTransitionDelay, 'transition triggered during sign out')
if (isRealCrypto) {
return createInitAppWithRealCrypto()
} else {
@@ -265,7 +262,6 @@ export async function signOutApplicationAndReturnNew(application) {
export async function signOutAndBackIn(application, email, password) {
const isRealCrypto = application.crypto instanceof SNWebCrypto
await application.user.signOut()
await sleep(ServerTransitionDelay, 'transition triggered during sign out')
const newApplication = isRealCrypto ? await createInitAppWithRealCrypto() : await createInitAppWithFakeCrypto()
await this.loginToApplication({
application: newApplication,