mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Show up to 10 of your recent group PM conversations in the right sidebar. Clicking on the links narrows to the huddle and opens the compose box for the huddle. The green circles have opacity proportional to the number of users present in the huddle. This is feature flagged to staging only. Some of this code was written by Allen before commits were squashed. Known issue: unread counts disappear on certain refresh events. (imported from commit 3b44665150ba20594d8b0295cb30df03601c1d52)
		
			
				
	
	
		
			62 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			62 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
var feature_flags = (function () {
 | 
						|
 | 
						|
var exports = {};
 | 
						|
 | 
						|
// Helpers
 | 
						|
var internal_24_hour_people= _.contains([],
 | 
						|
    page_params.email);
 | 
						|
 | 
						|
var zulip_mit_emails = [];
 | 
						|
var is_zulip_mit_user = _.contains(zulip_mit_emails, page_params.email);
 | 
						|
 | 
						|
var iceland = page_params.domain === 'customer8.invalid';
 | 
						|
 | 
						|
var customer4_realms = [
 | 
						|
  'customer4.invalid',
 | 
						|
  'users.customer4.invalid'
 | 
						|
];
 | 
						|
var is_customer4 = _.contains(customer4_realms, page_params.domain);
 | 
						|
 | 
						|
// Local server-related flags
 | 
						|
exports.do_not_share_the_love = page_params.local_server;
 | 
						|
 | 
						|
// Manually-flipped debugging flags
 | 
						|
exports.log_send_times = false;
 | 
						|
exports.collect_send_times = false;
 | 
						|
 | 
						|
// Permanent realm-specific stuff:
 | 
						|
 | 
						|
exports.twenty_four_hour_time = internal_24_hour_people || iceland;
 | 
						|
 | 
						|
exports.dropbox_integration = page_params.staging || _.contains(['dropbox.com'], page_params.domain);
 | 
						|
 | 
						|
exports.mandatory_topics = _.contains([
 | 
						|
    'customer7.invalid'
 | 
						|
    ],
 | 
						|
    page_params.domain
 | 
						|
);
 | 
						|
 | 
						|
exports.left_side_userlist = page_params.staging ||
 | 
						|
  _.contains(['customer7.invalid'], page_params.domain);
 | 
						|
 | 
						|
 | 
						|
// Still very beta:
 | 
						|
exports.fade_users_when_composing = page_params.staging || is_customer4;
 | 
						|
exports.use_socket = page_params.staging;
 | 
						|
exports.notify_on_send_not_in_view = false;
 | 
						|
exports.show_huddles = page_params.staging;
 | 
						|
 | 
						|
// Still burning in...
 | 
						|
exports.mark_read_at_bottom = true;
 | 
						|
exports.propagate_topic_edits = true;
 | 
						|
exports.summarize_read_while_narrowed = false;
 | 
						|
 | 
						|
// Ready for deprecation.
 | 
						|
exports.collapsible = false;
 | 
						|
 | 
						|
 | 
						|
exports.single_message_narrowing = page_params.staging || ('customer12.invalid' === page_params.domain);
 | 
						|
return exports;
 | 
						|
 | 
						|
}());
 |