mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-10-31 16:21:46 +01:00 
			
		
		
		
	MatrixChat: Stop the crawler function and delete the index when logging out.
This commit is contained in:
		
							parent
							
								
									9ce478cb0e
								
							
						
					
					
						commit
						b23ba5f881
					
				| @ -1221,7 +1221,15 @@ export default createReactClass({ | ||||
|     /** | ||||
|      * Called when the session is logged out | ||||
|      */ | ||||
|     _onLoggedOut: function() { | ||||
|     _onLoggedOut: async function() { | ||||
|         const platform = PlatformPeg.get(); | ||||
| 
 | ||||
|         if (platform.supportsEventIndexing()) { | ||||
|             console.log("Seshat: Deleting event index."); | ||||
|             this.crawlerRef.cancel(); | ||||
|             await platform.deleteEventIndex(); | ||||
|         } | ||||
| 
 | ||||
|         this.notifyNewScreen('login'); | ||||
|         this.setStateForNewView({ | ||||
|             view: VIEWS.LOGIN, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user