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

Properly unset the active channel in the server #7919

Merged
merged 1 commit into from May 6, 2024

Conversation

larkox
Copy link
Contributor

@larkox larkox commented Apr 23, 2024

Summary

When we mark a channel as read on the server, the "active channel" gets set. This handles how we receive push notifications.

This PR makes sure we unset the active channel when we exit from the channel screen, or we send the app to the background.

I also piggybacked a fix for channels in other servers being read when they should not.

Ticket Link

Fix https://mattermost.atlassian.net/browse/MM-57000

Release Note

Improve status management to avoid missing notifications
Fix issue where channels from other servers may get read on startup

@larkox larkox added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Apr 23, 2024
@hmhealey hmhealey removed the 2: Dev Review Requires review by a core commiter label Apr 24, 2024
@enahum
Copy link
Contributor

enahum commented Apr 30, 2024

Is this PR still waiting for QA?

@larkox
Copy link
Contributor Author

larkox commented May 3, 2024

@enahum Yes. @yasserfaraazkhan friendly reminder.

Copy link
Contributor

@yasserfaraazkhan yasserfaraazkhan left a comment

Choose a reason for hiding this comment

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

recieved notification even after exiting the app using back button.

image

@larkox larkox added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester labels May 6, 2024
@larkox larkox merged commit a6d0436 into mattermost:main May 6, 2024
19 checks passed
@amyblais amyblais added this to the v2.17.0 milestone May 6, 2024
cyrusjc pushed a commit to cyrusjc/mattermost-mobile that referenced this pull request May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants