Skip to content

Make unread chats bold in chat switcher#787

Merged
chiragsalian merged 2 commits into
masterfrom
puneet-unread-chatswitcher
Nov 11, 2020
Merged

Make unread chats bold in chat switcher#787
chiragsalian merged 2 commits into
masterfrom
puneet-unread-chatswitcher

Conversation

@puneetlath

Copy link
Copy Markdown
Contributor

@chiragsalian can you review please?

This makes it so that when the chat switcher is being used, if a report that is shown in the search results has unread chats, the row will be bolded. For now, this will only apply to group chats, not individual user rows that show up in the chat switcher results. @chiragsalian's PR to change the order in which the results are shown will make it so that this also gets applied to individual user rows.

Fixed Issues

Fixes https://github.com/Expensify/Expensify/issues/144854

Tests

  1. Created a group DM
  2. Sent a message from one of the users in the group DM
  3. Logged into a different member of the group DM's account
  4. Verified that when using the chat switcher (i.e. typing the first few letters of one of the group members) the row for the group DM indeed was bolded.

Screenshots

image

@puneetlath puneetlath requested a review from a team as a code owner November 11, 2020 01:36
@puneetlath puneetlath self-assigned this Nov 11, 2020
@botify botify requested review from roryabraham and removed request for a team November 11, 2020 01:37
@puneetlath puneetlath changed the title Make undread chats bold in chat switcher Make unread chats bold in chat switcher Nov 11, 2020

@roryabraham roryabraham left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and it seems to work, just a couple little suggestions.

Comment thread src/pages/home/sidebar/ChatSwitcherRow.js Outdated
Comment thread src/pages/home/sidebar/ChatSwitcherRow.js Outdated
Comment thread src/pages/home/sidebar/ChatSwitcherRow.js Outdated

@roryabraham roryabraham left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@roryabraham

Copy link
Copy Markdown
Contributor

@chiragsalian all yours

@chiragsalian chiragsalian left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as well 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants