You've already forked matrix-react-sdk
							
							
				mirror of
				https://github.com/matrix-org/matrix-react-sdk.git
				synced 2025-11-04 11:51:45 +03:00 
			
		
		
		
	Add secret storage readiness checks
This visits all places that were checking for cross-siging readiness and adapts them to also check for secret storage readiness if needed. Part of https://github.com/vector-im/element-web/issues/13895
This commit is contained in:
		@@ -207,9 +207,13 @@ export default class DeviceListener {
 | 
			
		||||
        // (we add a listener on sync to do once check after the initial sync is done)
 | 
			
		||||
        if (!cli.isInitialSyncComplete()) return;
 | 
			
		||||
 | 
			
		||||
        // JRS: This will change again in the next PR which moves secret storage
 | 
			
		||||
        // later in the process.
 | 
			
		||||
        const crossSigningReady = await cli.isCrossSigningReady();
 | 
			
		||||
        const secretStorageReady = await cli.isSecretStorageReady();
 | 
			
		||||
        const allSystemsReady = crossSigningReady && secretStorageReady;
 | 
			
		||||
 | 
			
		||||
        if (this.dismissedThisDeviceToast || crossSigningReady) {
 | 
			
		||||
        if (this.dismissedThisDeviceToast || allSystemsReady) {
 | 
			
		||||
            hideSetupEncryptionToast();
 | 
			
		||||
        } else if (this.shouldShowSetupEncryptionToast()) {
 | 
			
		||||
            // make sure our keys are finished downloading
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user