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

CRNS-352: Unread counts and muted channels #678

Merged
merged 9 commits into from
May 28, 2021

Conversation

vishalnarkhede
Copy link
Contributor

CLA

  • I have signed the Stream CLA (required).
  • Code changes are tested

Description of the changes, What, Why and How?

https://getstream.slack.com/archives/C0185U214TF/p1620718706190100

We didn't consider muted channels while incrementing unread count, when new message comes in. We shouldn't increase unread count if channel is muted.

@vishalnarkhede vishalnarkhede changed the title Vishal/muted channels Unread counts and muted channels May 13, 2021
@github-actions
Copy link
Contributor

github-actions bot commented May 13, 2021

Size Change: +778 B (0%)

Total Size: 228 kB

Filename Size Change
dist/browser.es.js 49.5 kB +166 B (0%)
dist/browser.full-bundle.min.js 28.4 kB +92 B (0%)
dist/browser.js 50.1 kB +177 B (0%)
dist/index.es.js 49.6 kB +165 B (0%)
dist/index.js 50.2 kB +178 B (0%)

compressed-size-action

src/client.ts Outdated
*
* @param cid
*/
channelMuteStatus = (cid: string) => this._muteStatus(cid).muted;
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 have a similar function for userMuteStatus, so makes sense to have one for channel as well!!

src/client.ts Outdated Show resolved Hide resolved
@vishalnarkhede vishalnarkhede changed the title Unread counts and muted channels CRNS-352: Unread counts and muted channels May 14, 2021
@vishalnarkhede vishalnarkhede merged commit 28dfa1c into master May 28, 2021
@vishalnarkhede vishalnarkhede deleted the vishal/muted-channels branch May 28, 2021 08:57
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