This repository has been archived by the owner on Mar 13, 2024. It is now read-only.
ICU-687/ICU-688/ICU-689/ICU-690 Fixed channels staying in the UNREADS section after viewing #705
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It feels really good to fix 4 bugs with one fix. We were only updating the state that kept track of whether or not the current channel was in the unread section when you actually clicked on the items in the sidebar, so I changed it to trigger whenever you change channels.
As I discussed with Joram, I also changed one of the other reducers to use a new action instead of SELECT_CHANNEL to make it more clear that it needs additional information. At some point, we'll need to think about how this'll work when we start using more of the redux library's actions to switch channels.
This PR is on top of one of my other ones since they touch the same code, so the changes specific to this PR are here: icu686...icu687
Ticket Link
https://mattermost.atlassian.net/browse/ICU-687
https://mattermost.atlassian.net/browse/ICU-688
https://mattermost.atlassian.net/browse/ICU-689
https://mattermost.atlassian.net/browse/ICU-690