mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
Extract mark_summarized().
(imported from commit 14a1c69392ec6ca8cb0ec72196368a195dd4c6fa)
This commit is contained in:
@@ -5,8 +5,7 @@ var summary = (function () {
|
|||||||
|
|
||||||
var exports = {};
|
var exports = {};
|
||||||
|
|
||||||
exports.maybe_mark_summarized = function (message) {
|
function mark_summarized(message) {
|
||||||
if (feature_flags.summarize_read_while_narrowed) {
|
|
||||||
if (narrow.narrowed_by_reply()) {
|
if (narrow.narrowed_by_reply()) {
|
||||||
// Narrowed to a topic or PM recipient
|
// Narrowed to a topic or PM recipient
|
||||||
send_summarize_in_stream(message);
|
send_summarize_in_stream(message);
|
||||||
@@ -17,6 +16,11 @@ exports.maybe_mark_summarized = function (message) {
|
|||||||
send_summarize_in_home(message);
|
send_summarize_in_home(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exports.maybe_mark_summarized = function (message) {
|
||||||
|
if (feature_flags.summarize_read_while_narrowed) {
|
||||||
|
mark_summarized(message);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user