mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	narrow: Add frontend support for is:dm narrow and /is/dm URL.
				
					
				
			Adds support in the web app for `is` operator with the `dm` operand. This will deprecate the `is` operator with the `private` operand, but we keep support for backwards-compatibility with links/URLs. This commit updates the web app default behaviors to default to the new narrow/URLs `is:dm` and `/#narrow/is/dm` when navigating and searching in the app. There is some general clean up of references to private messages or PMs to be either direct messages or DMs in these changes. The general API changelog and documentation updates will be done in a final commit in the series of commits that adds support for the various new direct message narrows.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							33886575b2
						
					
				
				
					commit
					d379020726
				
			@@ -146,9 +146,7 @@ function scroll_all_private_into_view() {
 | 
			
		||||
 | 
			
		||||
export function handle_narrow_activated(filter) {
 | 
			
		||||
    const active_filter = filter;
 | 
			
		||||
    const is_all_private_message_view = _.isEqual(active_filter.sorted_term_types(), [
 | 
			
		||||
        "is-private",
 | 
			
		||||
    ]);
 | 
			
		||||
    const is_all_private_message_view = _.isEqual(active_filter.sorted_term_types(), ["is-dm"]);
 | 
			
		||||
    const narrow_to_private_messages_section = active_filter.operands("pm-with").length !== 0;
 | 
			
		||||
 | 
			
		||||
    if (is_all_private_message_view) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user