mirror of
https://github.com/zulip/zulip.git
synced 2025-10-31 20:13:46 +00:00
subs: Replace all in_home_view uses with is_muted property.
Replace all uses of `in_home_view` subscription property with `is_muted` property in frontend. Fixes #12322
This commit is contained in:
committed by
Tim Abbott
parent
f73600c82c
commit
40f550038d
@@ -5,7 +5,7 @@ var exports = {};
|
||||
exports.update_in_home_view = function (sub, value) {
|
||||
// value is true if we are in home view
|
||||
// TODO: flip the semantics to be is_muting
|
||||
sub.in_home_view = value;
|
||||
sub.is_muted = !value;
|
||||
|
||||
setTimeout(function () {
|
||||
var msg_offset;
|
||||
@@ -48,7 +48,7 @@ exports.update_in_home_view = function (sub, value) {
|
||||
}
|
||||
}, 0);
|
||||
|
||||
stream_list.set_in_home_view(sub.stream_id, sub.in_home_view);
|
||||
stream_list.set_in_home_view(sub.stream_id, !sub.is_muted);
|
||||
|
||||
var not_in_home_view_checkbox = $(".subscription_settings[data-stream-id='" + sub.stream_id + "'] #sub_setting_not_in_home_view .sub_setting_control");
|
||||
not_in_home_view_checkbox.prop('checked', !value);
|
||||
|
||||
Reference in New Issue
Block a user