mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Rename get_realm_human_user_ids -> get_active_user_ids.
The function name `get_realm_human_user_ids` was a lie--it includes active bots as well. The only user of this function is `activity.js`, which wasn't impacted by the misleading name, because we eventually filter out bots in the `info_for` function. It's possible that we actually want to include bots in the right sidebar, since they can be difficult to discover in other parts of the UI. Or, if we want to keep the right sidebar as all human users, we may eventually want to make the logic to exclude bots happen higher in the stack (but for real, this time).
This commit is contained in:
		@@ -553,9 +553,8 @@ exports.get_realm_persons = function () {
 | 
			
		||||
    return realm_people_dict.values();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
exports.get_realm_human_user_ids = function () {
 | 
			
		||||
    // This returns user_ids for all non-bot users
 | 
			
		||||
    // in the realm.
 | 
			
		||||
exports.get_active_user_ids = function () {
 | 
			
		||||
    // This includes active users and active bots.
 | 
			
		||||
    return realm_people_dict.keys();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user