fix: unmount application view when ephemeral identifier changes

This commit is contained in:
Mo
2022-02-04 12:00:03 -06:00
parent cc2169152e
commit b549cc38bf
23 changed files with 98 additions and 101 deletions

View File

@@ -16,6 +16,7 @@ import {
NoteGroupController,
removeFromArray,
IconsController,
Runtime,
} from '@standardnotes/snjs';
type WebServices = {
@@ -48,8 +49,8 @@ export class WebApplication extends SNApplication {
identifier: string,
defaultSyncServerHost: string,
public bridge: Bridge,
enableUnfinishedFeatures: boolean,
webSocketUrl: string
webSocketUrl: string,
runtime: Runtime
) {
super(
bridge.environment,
@@ -61,8 +62,8 @@ export class WebApplication extends SNApplication {
[],
defaultSyncServerHost,
bridge.appVersion,
enableUnfinishedFeatures,
webSocketUrl
webSocketUrl,
runtime
);
deviceInterface.setApplication(this);
this.noteControllerGroup = new NoteGroupController(this);