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

dialog_widget: Check if modal is open before closing. #29874

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Fixes a bug where marking messages read in recent view logs warning
in console that we are trying to close a modal when none is open.

if (dialog_widget.is_open()) {
dialog_widget.close();
}
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

Hmm, it might be better if we can have the callers pass the specific dialog that initiated this request? Given that this is happening after a network delay, the user might be using some totally different dialog by the time we get here.

Also, notably, is it intended that this happens even on recursive calls?

@zulipbot
Copy link
Member

Heads up @amanagr, we just merged some commits that conflict with the changes you made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the upstream/main branch and resolve your pull request's merge conflicts accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants