Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
recent: Rename sender_info_for_recent_topics_row.
evykassirer0b1a41ad0905
diff --git a/web/src/people.ts b/web/src/people.tsindex 1cbbc8dd03a..3548065f4c1 100644--- a/web/src/people.ts+++ b/web/src/people.ts@@ -836,7 +836,7 @@ export function medium_avatar_url_for_person(person: User): string {return `/avatar/${person.user_id}/medium?version=${person.avatar_version ?? 0}`;}-export function sender_info_for_recent_topics_row(sender_ids: number[]): SenderInfo[] {+export function sender_info_for_recent_view_row(sender_ids: number[]): SenderInfo[] {const senders_info = [];for (const id of sender_ids) {// TODO: Better handling for optional values w/o the assertion.diff --git a/web/src/recent_view_ui.js b/web/src/recent_view_ui.jsindex f3d24606480..2a619888d47 100644--- a/web/src/recent_view_ui.js+++ b/web/src/recent_view_ui.js@@ -475,7 +475,7 @@ function format_conversation(conversation_data) {displayed_other_senders = extra_sender_ids.slice(-MAX_EXTRA_SENDERS);}- context.senders = people.sender_info_for_recent_topics_row(senders);+ context.senders = people.sender_info_for_recent_view_row(senders);context.other_senders_count = Math.max(0, all_senders.length - MAX_AVATAR);extra_sender_ids = all_senders.slice(0, -MAX_AVATAR);const displayed_other_names = people.get_display_full_names(displayed_other_senders.reverse());diff --git a/web/tests/people.test.js b/web/tests/people.test.jsindex c3d284e55a9..f342094a91f 100644--- a/web/tests/people.test.js+++ b/web/tests/people.test.js@@ -750,7 +750,7 @@ test_people("message_methods", () => {assert.equal(people.medium_avatar_url_for_person(ashton), "/avatar/303/medium?version=0");muted_users.add_muted_user(30);- assert.deepEqual(people.sender_info_for_recent_topics_row([30]), [+ assert.deepEqual(people.sender_info_for_recent_view_row([30]), [{avatar_url_small: "http://zulip.zulipdev.com/avatar/30?s=50",is_muted: true,diff --git a/web/tests/recent_topics.test.js b/web/tests/recent_topics.test.jsindex aedccfad508..b4572df61c2 100644--- a/web/tests/recent_topics.test.js+++ b/web/tests/recent_topics.test.js@@ -358,7 +358,7 @@ function generate_topic_data(topic_info_array) {last_msg_time: "Just now",last_msg_url: "https://www.example.com",full_last_msg_date_time: "date at time",- senders: people.sender_info_for_recent_topics_row([1, 2]),+ senders: people.sender_info_for_recent_view_row([1, 2]),stream_name: "stream_name",stream_color: "",stream_id,