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

ContactStore #2283

Merged
merged 5 commits into from
Aug 28, 2024
Merged

ContactStore #2283

merged 5 commits into from
Aug 28, 2024

Conversation

shubhamkmr04
Copy link
Contributor

No description provided.

@shubhamkmr04 shubhamkmr04 changed the title Add ContactStore ContactStore Jul 10, 2024
@shubhamkmr04 shubhamkmr04 marked this pull request as draft July 10, 2024 14:29
@kaloudis
Copy link
Contributor

Somewhat on the right track, but the initial loading of contacts should happen when the wallet loads up. We don't want to read from encrypted storage every time we go to contact details, we just want to read from the store

@kaloudis kaloudis added this to the v0.9.1 milestone Jul 18, 2024
@shubhamkmr04 shubhamkmr04 marked this pull request as ready for review August 1, 2024 11:19
: [];

if (isEdit && this.prefillContact && !isNostrContact) {
console.log('heree', this.prefillContact);
Copy link
Contributor

Choose a reason for hiding this comment

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

remove this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@kaloudis kaloudis left a comment

Choose a reason for hiding this comment

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

change requested

@@ -463,7 +438,7 @@ export default class Contacts extends React.Component<
secondary
/>
)}
{loading ? (
{ContactStore?.loading ? (
Copy link
Contributor

Choose a reason for hiding this comment

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

since loading is used twice (here and 405), let's destructure it on line 206

@@ -672,8 +681,10 @@ export default class ContactDetails extends React.Component<
<Button
onPress={() => {
navigation.goBack();
ContactStore.setPrefillContact(
Copy link
Contributor

Choose a reason for hiding this comment

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

since setPrefillContact is used twice (here and 242), let's destructure it at the top of the render function

@kaloudis kaloudis merged commit 4bc1e3b into ZeusLN:master Aug 28, 2024
3 checks passed
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.

2 participants