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

hashchange: Fix infinite home view <-> narrow loop on escape keypress. #30108

Merged
merged 1 commit into from
May 16, 2024

Conversation

amanagr
Copy link
Member

@amanagr amanagr commented May 16, 2024

Reproducer:

  • Start with empty hash and combined feed as home view.
  • Go to any narrow.
  • Keep pressing escape key.

You will keep switching between narrow view and home view while you should just stop at home view. This was due to set_hash_to_home_view not considering empty hash as a valid home view hash.

Introduced in f07ed8b
discussion: https://chat.zulip.org/#narrow/stream/9-issues/topic/Esc.20key.20loop.20with.20combined.20feed

Reproducer:
* Start with empty hash and combined feed as home view.
* Go to any narrow.
* Keep pressing escape key.

You will keep switching between narrow view and home view while
you should just stop at home view. This was due to
`set_hash_to_home_view` not considering empty hash as a valid
home view hash.
@timabbott timabbott merged commit 62c682b into zulip:main May 16, 2024
7 checks passed
@timabbott
Copy link
Sponsor Member

Merged, thanks @amanagr!

Copy link

sentry-io bot commented May 18, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ TypeError: Cannot read properties of undefined (reading 'getBoundingClientRect') get_offset_to_window(src/setup) View Issue

Did you find this useful? React with a 👍 or 👎

@amanagr amanagr deleted the combined_feed_bug branch May 24, 2024 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants