This repository has been archived by the owner on Mar 13, 2024. It is now read-only.
[MM-31358] Clicking 'Jump to recent' in an archived channel shouldn't redirect to town square #7235
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.
Summary
Previously when jumping into an archived channel, if you clicked the "Jump to recents" toast, you'd be redirected out of the channel (provided you were significantly in the message history).
If you jump into a channel and are significantly into the message history, instead of scrolling down, the webapp will simply reload the page based on the localStorage last visited page value, which will result with the user at the most recent messages.
Since we were not storing archived channels in the last visited page value, when you clicked "Jump to recents" in an archived channel, you wouldn't be redirected to the same archived channel, but to some other one (usually town square).
Ticket Link
https://mattermost.atlassian.net/browse/MM-31358
Related Pull Requests
N/A
Screenshots
N/A