Skip to content
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

Merged
merged 2 commits into from
Jan 4, 2021

Conversation

nickmisasi
Copy link
Contributor

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

@nickmisasi nickmisasi added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester Setup Cloud Test Server Setup a test server using Mattermost Cloud labels Dec 16, 2020
@hmhealey hmhealey removed the 2: Dev Review Requires review by a core commiter label Dec 18, 2020
@hmhealey
Copy link
Member

That makes sense to me. Hopefully we'll eventually get proper channel history instead of tracking the penultimate channel specifically which should make these sorts of things easier to prevent in the future.

@nickmisasi
Copy link
Contributor Author

/update-branch

Copy link
Contributor

@jgilliam17 jgilliam17 left a comment

Choose a reason for hiding this comment

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

Thank you @nickmisasi
Tested, looks good to merge.

  • Verified user is taken to the bottom of the archived channel when clicking on history toast
    after using jump from search results.

@jgilliam17 jgilliam17 added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester Setup Cloud Test Server Setup a test server using Mattermost Cloud labels Jan 4, 2021
@mm-cloud-bot
Copy link

Test server destroyed

@nickmisasi nickmisasi merged commit 6b656c3 into master Jan 4, 2021
@nickmisasi nickmisasi deleted the MM-31358 branch January 4, 2021 16:27
@amyblais amyblais added this to the v5.32.0 milestone Jan 4, 2021
@amyblais amyblais added Changelog/Done Required changelog entry has been written Docs/Not Needed Does not require documentation labels Jan 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request Changelog/Done Required changelog entry has been written Docs/Not Needed Does not require documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants