|
|
@ -28,6 +28,7 @@ import AppStorage from '../storage'; |
|
|
|
import appRuntimeManager from '../appManagers/appRuntimeManager'; |
|
|
|
import appRuntimeManager from '../appManagers/appRuntimeManager'; |
|
|
|
import { SocketProxyTask } from './transports/socketProxied'; |
|
|
|
import { SocketProxyTask } from './transports/socketProxied'; |
|
|
|
import telegramMeWebManager from './telegramMeWebManager'; |
|
|
|
import telegramMeWebManager from './telegramMeWebManager'; |
|
|
|
|
|
|
|
import { pause } from '../../helpers/schedulers'; |
|
|
|
|
|
|
|
|
|
|
|
type Task = { |
|
|
|
type Task = { |
|
|
|
taskId: number, |
|
|
|
taskId: number, |
|
|
@ -103,7 +104,10 @@ export class ApiManagerProxy extends CryptoWorkerMethods { |
|
|
|
Promise.all([ |
|
|
|
Promise.all([ |
|
|
|
AppStorage.toggleStorage(false), |
|
|
|
AppStorage.toggleStorage(false), |
|
|
|
sessionStorage.clear(), |
|
|
|
sessionStorage.clear(), |
|
|
|
|
|
|
|
Promise.race([ |
|
|
|
telegramMeWebManager.setAuthorized(false), |
|
|
|
telegramMeWebManager.setAuthorized(false), |
|
|
|
|
|
|
|
pause(3000) |
|
|
|
|
|
|
|
]), |
|
|
|
webPushApiManager.forceUnsubscribe() |
|
|
|
webPushApiManager.forceUnsubscribe() |
|
|
|
]).finally(() => { |
|
|
|
]).finally(() => { |
|
|
|
appRuntimeManager.reload(); |
|
|
|
appRuntimeManager.reload(); |
|
|
|