fix: screenshot privacy setting not working on app relaunch (#1900)
This commit is contained in:
@@ -20,9 +20,11 @@ import { SyncStatusController } from '@/Controllers/SyncStatusController'
|
||||
import { AccountMenuPane } from '@/Components/AccountMenu/AccountMenuPane'
|
||||
|
||||
import { EventObserverInterface } from './EventObserverInterface'
|
||||
import { WebApplication } from '@/Application/Application'
|
||||
|
||||
export class ApplicationEventObserver implements EventObserverInterface {
|
||||
constructor(
|
||||
private application: WebApplication,
|
||||
private routeService: RouteServiceInterface,
|
||||
private purchaseFlowController: PurchaseFlowController,
|
||||
private accountMenuController: AccountMenuController,
|
||||
@@ -89,6 +91,11 @@ export class ApplicationEventObserver implements EventObserverInterface {
|
||||
case ApplicationEvent.SyncStatusChanged:
|
||||
this.syncStatusController.update(this.syncClient.getSyncStatus())
|
||||
break
|
||||
case ApplicationEvent.LocalDataLoaded:
|
||||
if (this.application.isNativeMobileWeb()) {
|
||||
this.application.handleInitialMobileScreenshotPrivacy()
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user