mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			71 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
var feature_flags = (function () {
 | 
						|
 | 
						|
var exports = {};
 | 
						|
 | 
						|
// Helpers
 | 
						|
var special_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);
 | 
						|
 | 
						|
// Enterprise-related flags
 | 
						|
exports.do_not_share_the_love = page_params.enterprise;
 | 
						|
 | 
						|
// Manually-flipped debugging flags
 | 
						|
exports.log_send_times = false;
 | 
						|
exports.collect_send_times = false;
 | 
						|
 | 
						|
// Permanent realm-specific stuff:
 | 
						|
exports.disable_message_editing = _.contains(['mit.edu'], page_params.domain);
 | 
						|
 | 
						|
exports.twenty_four_hour_time = special_24_hour_people || iceland;
 | 
						|
 | 
						|
exports.mandatory_topics = _.contains([
 | 
						|
    'customer7.invalid'
 | 
						|
    ],
 | 
						|
    page_params.domain
 | 
						|
);
 | 
						|
 | 
						|
exports.left_side_userlist = _.contains(['customer7.invalid'], page_params.domain);
 | 
						|
//This was set as a page_params variable already, because it's also used in
 | 
						|
//the settings.html django template. See zerver/views/__init__.py:home(request).
 | 
						|
exports.show_autoscroll_forever_option = page_params.show_autoscroll_forever_option;
 | 
						|
 | 
						|
// Still very beta:
 | 
						|
 | 
						|
exports.full_width = false; //page_params.staging;
 | 
						|
exports.cleanup_before_reload = page_params.staging || is_customer4;
 | 
						|
exports.new_bot_ui = page_params.staging;
 | 
						|
 | 
						|
// This list must match the list of domains in enqueue_digest_emails.
 | 
						|
exports.dont_show_digest_email_setting = _.contains(["mit.edu", "customer29.invalid", "customer20.invalid"],
 | 
						|
                                                    page_params.domain);
 | 
						|
 | 
						|
exports.fade_at_stream_granularity = page_params.staging;
 | 
						|
 | 
						|
// Still burning in...
 | 
						|
exports.fade_users_when_composing = true;
 | 
						|
exports.mark_read_at_bottom = true;
 | 
						|
exports.propagate_topic_edits = true;
 | 
						|
exports.clicking_notification_causes_narrow = true;
 | 
						|
exports.use_socket = true;
 | 
						|
exports.local_echo = true;
 | 
						|
exports.negated_search = true;
 | 
						|
 | 
						|
// Ready for deprecation.
 | 
						|
exports.collapsible = false;
 | 
						|
exports.dropbox_integration = false;
 | 
						|
 | 
						|
return exports;
 | 
						|
 | 
						|
}());
 |