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

inbox warning #489

Merged
merged 2 commits into from
Nov 26, 2024
Merged

inbox warning #489

merged 2 commits into from
Nov 26, 2024

Conversation

ticruz38
Copy link
Collaborator

What it looks like at the bottom of the chat history
Screenshot 2024-11-25 at 16 47 52

There is another warning, once the user hit send, in a confirmation modal. You probably want to remove this one.
Screenshot 2024-11-25 at 16 49 36

There was also an issue once you remove all your inbox relay, your npub still exist in the inboxPoliciesByPubkey store mapping, but the publicTags list is empty. I took this into consideration as well to check if you have any inbox relay.

@ticruz38
Copy link
Collaborator Author

#485

@staab staab changed the base branch from master to dev November 25, 2024 17:03
Comment on lines 67 to 71
pubkeys.filter(
pubkey =>
!$inboxRelayPoliciesByPubkey.has(pubkey) ||
!$inboxRelayPoliciesByPubkey.get(pubkey).publicTags.length,
),
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can use getListTags($inboxRelayPoliciesByPubkey.get(pubkey)).length === 0 without having to check has since getListTags accepts undefined.

@staab
Copy link
Collaborator

staab commented Nov 25, 2024

One very minor change for conciseness, otherwise looks good. You're right that the other warning is redundant, but I think we can leave it, since we really don't want people bypassing the warning.

@staab staab merged commit 56184fd into coracle-social:dev Nov 26, 2024
0 of 2 checks passed
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.

2 participants