recent senders: Rename sender_info getter function for brevity.

We will also later use this function for attaching other
information to it like whether the sender has been muted
or not.
This commit is contained in:
Abhijeet Prasad Bodas
2021-05-12 11:30:54 +05:30
committed by Tim Abbott
parent cf69ce166c
commit e4cbfcaf1d
4 changed files with 4 additions and 4 deletions

View File

@@ -681,7 +681,7 @@ test_people("message_methods", () => {
"https://secure.gravatar.com/avatar/6dbdd7946b58d8b11351fcb27e5cdd55?d=identicon&s=50",
);
assert.deepEqual(people.sender_info_with_small_avatar_urls_for_sender_ids([30]), [
assert.deepEqual(people.sender_info_for_recent_topics_row([30]), [
{
avatar_url_small: "/avatar/30&s=50",
email: "me@example.com",

View File

@@ -166,7 +166,7 @@ const people = zrequire("people");
const rt = zrequire("recent_topics");
people.is_my_user_id = (id) => id === 1;
people.sender_info_with_small_avatar_urls_for_sender_ids = (ids) => ids;
people.sender_info_for_recent_topics_row = (ids) => ids;
let id = 0;