mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-30 19:43:47 +00:00 
			
		
		
		
	narrow-state: Filter out "with" operator in narrowed_by_topic_reply.
As the web app is now using the "with" operator for links to channel
topic conversations, we need to filter out that operator when
checking the current narrow state.
(cherry picked from commit 24a65c1783)
			
			
This commit is contained in:
		
				
					committed by
					
						 Tim Abbott
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							2e6eeabac6
						
					
				
				
					commit
					a7bc77aaa0
				
			| @@ -366,7 +366,7 @@ export function narrowed_by_topic_reply(current_filter: Filter | undefined = fil | ||||
|     if (current_filter === undefined) { | ||||
|         return false; | ||||
|     } | ||||
|     const terms = current_filter.terms(); | ||||
|     const terms = current_filter.terms().filter((term) => term.operator !== "with"); | ||||
|     return ( | ||||
|         terms.length === 2 && | ||||
|         current_filter.operands("channel").length === 1 && | ||||
|   | ||||
		Reference in New Issue
	
	Block a user