Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show unread count #337

Merged
merged 2 commits into from
Jan 30, 2023
Merged

show unread count #337

merged 2 commits into from
Jan 30, 2023

Conversation

mrval5
Copy link
Contributor

@mrval5 mrval5 commented Jan 26, 2023

What does this do?

render unread messages :

  • in front of each chat
  • total on all unread messages in tab head

Screenshot 2023-01-26 at 17 07 01

Why are we making this change?

How do I test this?

Key decisions and Risk Assessment:

Things to consider:

  1. How will this affect security?
  2. How will this affect performance?
  3. Does this change any APIs?

@mrval5 mrval5 requested a review from a team January 27, 2023 07:53
} = state;

return {
user,
allUnreadMessages: list.reduce((count, directMessage) => count + directMessage.unreadCount, 0),
Copy link
Collaborator

Choose a reason for hiding this comment

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

to confirm - is this real time, or would the user have to reload to see unread count icons after receiving new message?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we do not have realtime yet for dm's and also channels

hkhanouchi
hkhanouchi previously approved these changes Jan 30, 2023
Co-authored-by: Ratik Jindal <ratikjindal21@gmail.com>
@mrval5 mrval5 merged commit 1e1f887 into main Jan 30, 2023
@mrval5 mrval5 deleted the direct-messages-unread-count branch January 30, 2023 14:53
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.

None yet

3 participants