Skip to content

Commit

Permalink
DEPLOY TEST: Avoid date separators on czo.
Browse files Browse the repository at this point in the history
There may be a simpler way to check czo here, but the
main goal here is to just deploy-test the one-liner to
get some immediate user feedback.
  • Loading branch information
Steve Howell committed Nov 12, 2018
1 parent f729840 commit 485823d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/js/feature_flags.js
Expand Up @@ -2,6 +2,8 @@ var feature_flags = (function () {

var exports = {};

exports.avoid_date_separators = page_params.realm_name === 'Zulip Community';

exports.load_server_counts = false;

// The features below have all settled into their final states and can
Expand Down
4 changes: 4 additions & 0 deletions static/js/message_list_view.js
Expand Up @@ -73,6 +73,10 @@ function add_display_time(group, message_container, prev) {
group.show_date = timerender.render_date(time, undefined, today)[0].outerHTML;
}

if (feature_flags.avoid_date_separators) {
group.show_date_separator = false;
}

if (message_container.timestr === undefined) {
message_container.timestr = timerender.stringify_time(time);
}
Expand Down

0 comments on commit 485823d

Please sign in to comment.