mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	buddy list: Make Group PMs appear more quickly.
It used to be the case that you would get new messages for a huddle, but the huddle wouldn't show up on your buddy list until the every-50-seconds mass update of the buddy list. Now we make sure to work with non-stale jQuery objects, and, more importantly, we resize ourselves if we add new huddles. (The resize issue arises due to some complicated heuristics where we don't want group PMs to take up too much of the buddy list for users who don't have many in their history.)
This commit is contained in:
		@@ -9,6 +9,10 @@ add_dependencies({
 | 
			
		||||
    people: 'js/people.js'
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
set_global('resize', {
 | 
			
		||||
    resize_page_components: function () {}
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
set_global('document', {
 | 
			
		||||
    hasFocus: function () {
 | 
			
		||||
        return true;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user