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

Link Preview Improvements #347

Merged
merged 4 commits into from
Aug 17, 2023
Merged

Link Preview Improvements #347

merged 4 commits into from
Aug 17, 2023

Conversation

teodorus-nathaniel
Copy link
Contributor

@teodorus-nathaniel teodorus-nathaniel commented Aug 17, 2023

Changes

  • Add stop propagation to elements in chat so it doesn't open menu
  • Fix back button after redirecting to other chat from link preview not working
    • Remove uneccessary call of replaceUrl
    • Remove trailing ? from getCurrentUrlWithoutQuery call if no search params
    • Fix replaceUrl state, which should only be pathname instead of with origin

usePrevious in infinite scroll data uses other chat's data length, which results in the infinite data have includes so much more data than it should
- Fix replaceUrl state, which should only be pathname without origin
- Remove unnecessary call of replaceUrl
- Remove trailing ? in getCurrentUrlWithout query
@teodorus-nathaniel teodorus-nathaniel changed the title Add stop propagation for elements in chat so it doesn't open menu Link Preview Improvements Aug 17, 2023
@teodorus-nathaniel teodorus-nathaniel self-assigned this Aug 17, 2023
@teodorus-nathaniel teodorus-nathaniel added bug Something isn't working enhancement New feature or request labels Aug 17, 2023
@olehmell olehmell merged commit 4ef23fe into main Aug 17, 2023
@teodorus-nathaniel teodorus-nathaniel deleted the link-preview-improvement branch November 9, 2023 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants