minor: Update comment in narrow.activate().

This commit is contained in:
Steve Howell 2018-05-03 13:05:57 +00:00 committed by Tim Abbott
parent 93ce1fa95c
commit c00a054893

View File

@ -144,9 +144,12 @@ exports.activate = function (raw_operators, opts) {
}
}
// For legacy reasons, we need to set current_filter before calling
// muting_enabled.
// IMPORTANT! At this point we are heavily committed to
// populating the new narrow, so we update our narrow_state.
// From here on down, any calls to the narrow_state API will
// reflect the upcoming narrow.
narrow_state.set_current_filter(filter);
var muting_enabled = narrow_state.muting_enabled();
// Save how far from the pointer the top of the message list was.