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

Handle screen permissions error to hide component #338

Merged
merged 2 commits into from
Feb 17, 2023
Merged

Conversation

streamer45
Copy link
Contributor

@streamer45 streamer45 commented Feb 16, 2023

Summary

There was an issue in handling the request from the desktop side in the ScreenSourceModal component since in case of an error we wouldn't show the modal but its state would still be open. Handling the error fixes this so that if users hide the "no permissions" banner and try again to share they will get it again, as expected.

To note, I think we should be changing the error message if we are on desktop since the "cancelled" part doesn't apply there.

Related PR

mattermost/desktop#2556

@streamer45 streamer45 added the 2: Dev Review Requires review by a core committer label Feb 16, 2023
@streamer45 streamer45 self-assigned this Feb 16, 2023
@streamer45 streamer45 added this to the v0.14.0 / MM v7.9 milestone Feb 16, 2023
@streamer45 streamer45 added 3: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Feb 17, 2023
@streamer45 streamer45 merged commit 549c5fe into main Feb 17, 2023
@streamer45 streamer45 deleted the MM-46980 branch February 17, 2023 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants