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

fix: message list shouldn't get stuck loading #1009

Merged
merged 6 commits into from
Oct 30, 2022
Merged

Conversation

elisealix22
Copy link
Contributor

What does this PR do?

This PR makes it so our useGetConversation hook listens for updates to conversations since it sets the selectedConversation based on the data in that store. This should fix sometimes there being a null selectedConversation which appeared like an endless loading state.

It also polishes the missing xmtp auth UI for people who haven't enabled DMs yet.

Before After
CleanShot 2022-10-28 at 14 05 25@2x Screen Shot 2022-10-28 at 4 03 33 PM

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How should this be tested?

  • Open a profile of someone who has messages enabled but you haven't DM'd with yet from their profile. Ensure the profile loads.
  • Navigate to a profile who hasn't authenticated w XMTP and ensure you can't type a message yet

@vercel
Copy link

vercel bot commented Oct 28, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
lenster ✅ Ready (Inspect) Visit Preview Oct 30, 2022 at 3:07PM (UTC)

data/feature-flags.ts Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview October 28, 2022 20:25 Inactive
@vercel vercel bot temporarily deployed to Preview October 28, 2022 20:37 Inactive
@bigint
Copy link
Member

bigint commented Oct 29, 2022

@elisealix22 can you please resolve the conflicts 🙏🏼

@elisealix22
Copy link
Contributor Author

Resolved @bigint ! Sorry for the delay

@vercel vercel bot temporarily deployed to Preview October 30, 2022 15:07 Inactive
@bigint bigint merged commit 210d819 into main Oct 30, 2022
@bigint bigint deleted the ea/fix-stuck-loading branch October 30, 2022 20:50
@gitpoap-bot
Copy link

gitpoap-bot bot commented Oct 30, 2022

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2022 Lenster Contributor:

GitPOAP: 2022 Lenster Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

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

Successfully merging this pull request may close these issues.

None yet

3 participants