mirror of
				https://github.com/matrix-org/synapse.git
				synced 2025-11-03 21:57:26 +00:00 
			
		
		
		
	Don't filter state in /context response (#14461)
We don't filter state usually, so doing so here is a waste of time. This is not much of an issue for clients that enable lazy loading of members, since there will be fewer state events.
This commit is contained in:
		
							parent
							
								
									f844b470f6
								
							
						
					
					
						commit
						945a0928c7
					
				
							
								
								
									
										1
									
								
								changelog.d/14461.misc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								changelog.d/14461.misc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
Improve performance of `/context` in large rooms.
 | 
			
		||||
@ -1451,7 +1451,7 @@ class RoomContextHandler:
 | 
			
		||||
            events_before=events_before,
 | 
			
		||||
            event=event,
 | 
			
		||||
            events_after=events_after,
 | 
			
		||||
            state=await filter_evts(state_events),
 | 
			
		||||
            state=state_events,
 | 
			
		||||
            aggregations=aggregations,
 | 
			
		||||
            start=await token.copy_and_replace(
 | 
			
		||||
                StreamKeyType.ROOM, results.start
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user