recent: Rename some variables referencing recent_topics.

This commit is contained in:
evykassirer
2023-09-06 15:02:24 -07:00
committed by Tim Abbott
parent 54acc3fccf
commit d3e561dbb1
3 changed files with 9 additions and 9 deletions

View File

@@ -312,7 +312,7 @@ export function respond_to_message(opts) {
if (message === undefined) { if (message === undefined) {
// Open empty compose with nothing pre-filled since // Open empty compose with nothing pre-filled since
// user is not focused on any table row. // user is not focused on any table row.
start("stream", {trigger: "recent_topics_nofocus"}); start("stream", {trigger: "recent_view_nofocus"});
return; return;
} }
} else { } else {

View File

@@ -25,7 +25,7 @@ const consts = {
narrow_after: 50, narrow_after: 50,
num_before_home_anchor: 200, num_before_home_anchor: 200,
num_after_home_anchor: 200, num_after_home_anchor: 200,
recent_topics_initial_fetch_size: 400, recent_view_initial_fetch_size: 400,
backward_batch_size: 100, backward_batch_size: 100,
forward_batch_size: 100, forward_batch_size: 100,
catch_up_batch_size: 1000, catch_up_batch_size: 1000,
@@ -549,7 +549,7 @@ export function initialize(home_view_loaded) {
// //
// This MessageList is defined similarly to home_message_list, // This MessageList is defined similarly to home_message_list,
// without a `table_name` attached. // without a `table_name` attached.
const recent_topics_message_list = new message_list.MessageList({ const recent_view_message_list = new message_list.MessageList({
filter: new Filter([{operator: "in", operand: "home"}]), filter: new Filter([{operator: "in", operand: "home"}]),
excludes_muted_topics: true, excludes_muted_topics: true,
}); });
@@ -560,9 +560,9 @@ export function initialize(home_view_loaded) {
recent_view_ui.show_loading_indicator(); recent_view_ui.show_loading_indicator();
load_messages({ load_messages({
anchor: "newest", anchor: "newest",
num_before: consts.recent_topics_initial_fetch_size, num_before: consts.recent_view_initial_fetch_size,
num_after: 0, num_after: 0,
msg_list: recent_topics_message_list, msg_list: recent_view_message_list,
cont: recent_view_ui.hide_loading_indicator, cont: recent_view_ui.hide_loading_indicator,
}); });
} }

View File

@@ -79,10 +79,10 @@ export const COLUMNS = {
mute: 3, mute: 3,
}; };
// The number of selectable actions in a recent_topics. Used to // The number of selectable actions in a Recent Conversations view.
// implement wraparound of elements with the right/left keys. Must be // Used to implement wraparound of elements with the right/left keys.
// increased when we add new actions, or rethought if we add optional // Must be increased when we add new actions, or rethought if we add
// actions that only appear in some rows. // optional actions that only appear in some rows.
const MAX_SELECTABLE_TOPIC_COLS = 4; const MAX_SELECTABLE_TOPIC_COLS = 4;
const MAX_SELECTABLE_DIRECT_MESSAGE_COLS = 3; const MAX_SELECTABLE_DIRECT_MESSAGE_COLS = 3;