fix: screenshot privacy setting not working on app relaunch (#1900)

This commit is contained in:
Aman Harwara
2022-10-28 19:31:15 +05:30
committed by GitHub
parent 9ac5bd0c27
commit 5a6f4fb35c
5 changed files with 34 additions and 0 deletions

View File

@@ -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
}
}