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.

refactor: Cleanup the existence of fraction_present.

Nikhil Maske88856f58c5fa
diff --git a/frontend_tests/node_tests/pm_list.js b/frontend_tests/node_tests/pm_list.js
index 07e8d00046b..275f95924d2 100644
--- a/frontend_tests/node_tests/pm_list.js
+++ b/frontend_tests/node_tests/pm_list.js
@@ -95,7 +95,6 @@ test("build_private_messages_list", (override) => {
is_active: false,
url: "#narrow/pm-with/101,102-group",
user_circle_class: "user_circle_fraction",
- fraction_present: undefined,
is_group: true,
},
];
@@ -136,7 +135,6 @@ test("build_private_messages_list_bot", (override) => {
is_active: false,
url: "#narrow/pm-with/314-outgoingwebhook",
user_circle_class: "user_circle_green",
- fraction_present: undefined,
is_group: false,
},
{
@@ -147,7 +145,6 @@ test("build_private_messages_list_bot", (override) => {
is_active: false,
url: "#narrow/pm-with/101,102-group",
user_circle_class: "user_circle_fraction",
- fraction_present: undefined,
is_group: true,
},
];
diff --git a/static/js/pm_list.js b/static/js/pm_list.js
index 914d17d63fc..dd8e5a1e60b 100644
--- a/static/js/pm_list.js
+++ b/static/js/pm_list.js
@@ -75,11 +75,9 @@ export function _get_convos() {
const is_active = user_ids_string === active_user_ids_string;
let user_circle_class;
- let fraction_present;
if (is_group) {
user_circle_class = "user_circle_fraction";
- fraction_present = buddy_data.huddle_fraction_present(user_ids_string);
} else {
const user_id = Number.parseInt(user_ids_string, 10);
user_circle_class = buddy_data.get_user_circle_class(user_id);
@@ -98,7 +96,6 @@ export function _get_convos() {
is_active,
url: hash_util.pm_with_uri(reply_to),
user_circle_class,
- fraction_present,
is_group,
};
display_messages.push(display_message);