Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

recent: Rename some variables referencing recent_topics.

evykassirerd3e561dbb1c3
diff --git a/web/src/compose_actions.js b/web/src/compose_actions.js
index 7334793f2a1..6b39869bb7a 100644
--- a/web/src/compose_actions.js
+++ b/web/src/compose_actions.js
@@ -312,7 +312,7 @@ export function respond_to_message(opts) {
if (message === undefined) {
// Open empty compose with nothing pre-filled since
// user is not focused on any table row.
- start("stream", {trigger: "recent_topics_nofocus"});
+ start("stream", {trigger: "recent_view_nofocus"});
return;
}
} else {
diff --git a/web/src/message_fetch.js b/web/src/message_fetch.js
index d7954844457..92c4e0d73ae 100644
--- a/web/src/message_fetch.js
+++ b/web/src/message_fetch.js
@@ -25,7 +25,7 @@ const consts = {
narrow_after: 50,
num_before_home_anchor: 200,
num_after_home_anchor: 200,
- recent_topics_initial_fetch_size: 400,
+ recent_view_initial_fetch_size: 400,
backward_batch_size: 100,
forward_batch_size: 100,
catch_up_batch_size: 1000,
@@ -549,7 +549,7 @@ export function initialize(home_view_loaded) {
//
// This MessageList is defined similarly to home_message_list,
// 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"}]),
excludes_muted_topics: true,
});
@@ -560,9 +560,9 @@ export function initialize(home_view_loaded) {
recent_view_ui.show_loading_indicator();
load_messages({
anchor: "newest",
- num_before: consts.recent_topics_initial_fetch_size,
+ num_before: consts.recent_view_initial_fetch_size,
num_after: 0,
- msg_list: recent_topics_message_list,
+ msg_list: recent_view_message_list,
cont: recent_view_ui.hide_loading_indicator,
});
}
diff --git a/web/src/recent_view_ui.js b/web/src/recent_view_ui.js
index eb46531da59..591e02fec71 100644
--- a/web/src/recent_view_ui.js
+++ b/web/src/recent_view_ui.js
@@ -79,10 +79,10 @@ export const COLUMNS = {
mute: 3,
};
-// The number of selectable actions in a recent_topics. Used to
-// implement wraparound of elements with the right/left keys. Must be
-// increased when we add new actions, or rethought if we add optional
-// actions that only appear in some rows.
+// The number of selectable actions in a Recent Conversations view.
+// Used to implement wraparound of elements with the right/left keys.
+// Must be increased when we add new actions, or rethought if we add
+// optional actions that only appear in some rows.
const MAX_SELECTABLE_TOPIC_COLS = 4;
const MAX_SELECTABLE_DIRECT_MESSAGE_COLS = 3;