mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 14:03:30 +00:00 
			
		
		
		
	stream_list: Remove a reference to data-name in sidebar.
This commit is contained in:
		@@ -461,9 +461,10 @@ exports.initialize = function () {
 | 
			
		||||
        if (overlays.is_active()) {
 | 
			
		||||
            ui_util.change_tab_to('#home');
 | 
			
		||||
        }
 | 
			
		||||
        var stream = $(e.target).parents('li').attr('data-name');
 | 
			
		||||
        var stream_id = $(e.target).parents('li').attr('data-stream-id');
 | 
			
		||||
        var sub = stream_data.get_sub_by_id(stream_id);
 | 
			
		||||
        popovers.hide_all();
 | 
			
		||||
        narrow.by('stream', stream, {select_first_unread: true, trigger: 'sidebar'});
 | 
			
		||||
        narrow.by('stream', sub.name, {select_first_unread: true, trigger: 'sidebar'});
 | 
			
		||||
 | 
			
		||||
        e.preventDefault();
 | 
			
		||||
        e.stopPropagation();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user