mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
This seems to only work in Chrome and Safari. Firefox (at least my version) simply doesn't fire an onclick event, and our desktop app has its own native code that decides what to do when a notification is clicked. (imported from commit 30bacec4726b9e6c022dd2c74f83d37747260dba)
60 lines
1.5 KiB
JavaScript
60 lines
1.5 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);
|
|
|
|
// 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.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 = _.contains(['customer7.invalid'], page_params.domain);
|
|
|
|
|
|
// Still very beta:
|
|
exports.fade_users_when_composing = page_params.staging || is_customer4;
|
|
exports.use_socket = false;
|
|
exports.clicking_notification_causes_narrow = page_params.staging || _.contains(['customer25.invalid'], page_params.domain);
|
|
|
|
// Still burning in...
|
|
exports.mark_read_at_bottom = true;
|
|
exports.propagate_topic_edits = true;
|
|
exports.summarize_read_while_narrowed = false;
|
|
exports.show_huddles = true;
|
|
exports.single_message_narrowing = true;
|
|
|
|
// Ready for deprecation.
|
|
exports.collapsible = false;
|
|
|
|
return exports;
|
|
|
|
}());
|