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.

pm_list_data: Rename private_message(s) to conversation(s).

Shubham Padiab771c5f5b080
diff --git a/web/src/pm_list_data.ts b/web/src/pm_list_data.ts
index 079d4536bf9..a6b7037b062 100644
--- a/web/src/pm_list_data.ts
+++ b/web/src/pm_list_data.ts
@@ -45,7 +45,7 @@ type DisplayObject = {
};
export function get_conversations(): DisplayObject[] {
- const private_messages = pm_conversations.recent.get();
+ const conversations = pm_conversations.recent.get();
const display_objects = [];
// The user_ids_string for the current view, if any.
@@ -53,12 +53,14 @@ export function get_conversations(): DisplayObject[] {
if (
active_user_ids_string !== undefined &&
- !private_messages.map((obj) => obj.user_ids_string).includes(active_user_ids_string)
+ !conversations
+ .map((conversation) => conversation.user_ids_string)
+ .includes(active_user_ids_string)
) {
- private_messages.unshift({user_ids_string: active_user_ids_string, max_message_id: -1});
+ conversations.unshift({user_ids_string: active_user_ids_string, max_message_id: -1});
}
- for (const conversation of private_messages) {
+ for (const conversation of conversations) {
const user_ids_string = conversation.user_ids_string;
const reply_to = people.user_ids_string_to_emails_string(user_ids_string);
assert(reply_to !== undefined);