mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-11-04 02:02:14 +01:00 
			
		
		
		
	BasePlatform: Add prototype methods for event indexing.
This commit is contained in:
		
							parent
							
								
									6e33cc0650
								
							
						
					
					
						commit
						b8a3ee1841
					
				@ -151,4 +151,44 @@ export default class BasePlatform {
 | 
				
			|||||||
    async setMinimizeToTrayEnabled(enabled: boolean): void {
 | 
					    async setMinimizeToTrayEnabled(enabled: boolean): void {
 | 
				
			||||||
        throw new Error("Unimplemented");
 | 
					        throw new Error("Unimplemented");
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    supportsEventIndexing(): boolean {
 | 
				
			||||||
 | 
					        return false;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    async initEventIndex(userId: string): boolean {
 | 
				
			||||||
 | 
					        throw new Error("Unimplemented");
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    async addEventToIndex(ev: {}, profile: {}): void {
 | 
				
			||||||
 | 
					        throw new Error("Unimplemented");
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    indexIsEmpty(): Promise<boolean> {
 | 
				
			||||||
 | 
					        throw new Error("Unimplemented");
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    async commitLiveEvents(): void {
 | 
				
			||||||
 | 
					        throw new Error("Unimplemented");
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    async searchEventIndex(term: string): Promise<{}> {
 | 
				
			||||||
 | 
					        throw new Error("Unimplemented");
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    async addHistoricEvents(events: [], checkpoint: {} = null, oldCheckpoint: {} = null): Promise<bool> {
 | 
				
			||||||
 | 
					        throw new Error("Unimplemented");
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    async addCrawlerCheckpoint(checkpoint: {}): Promise<> {
 | 
				
			||||||
 | 
					        throw new Error("Unimplemented");
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    async removeCrawlerCheckpoint(checkpoint: {}): Promise<> {
 | 
				
			||||||
 | 
					        throw new Error("Unimplemented");
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    async deleteEventIndex(): Promise<> {
 | 
				
			||||||
 | 
					        throw new Error("Unimplemented");
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user