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

Handle event deletions in redux #38

Open
chmac opened this issue Oct 9, 2024 · 3 comments
Open

Handle event deletions in redux #38

chmac opened this issue Oct 9, 2024 · 3 comments
Assignees
Labels
nr-app mobile app

Comments

@chmac
Copy link
Member

chmac commented Oct 9, 2024

No description provided.

@chmac chmac self-assigned this Oct 9, 2024
@chmac
Copy link
Member Author

chmac commented Oct 14, 2024

NIP9 defines deletion events.

kind 5

  • e tag, delete that event
  • a, <kind>:<pubkey>:<d-identifier>

Events should also have a k tag for each kind being deleted. I guess for filtering purposes.

@chmac
Copy link
Member Author

chmac commented Oct 14, 2024

Research on nos.lol says they process deletions by deleting the event, but only tell clients about the deletion if the client is listening with a query that would include the kind 5 deletion event. So a subscription for the pubkey of the author would work, but a subscription for author + kind 30397 will not. The deletions will never be seen by the client.

@chmac
Copy link
Member Author

chmac commented Oct 14, 2024

This needs some design. We need to actively subscribe to kind 5 events, which means we need to think about how to do that. I'll put this on pause for now as it's not critical for the next few weeks.

@chmac chmac mentioned this issue Oct 15, 2024
3 tasks
@guaka guaka added the nr-app mobile app label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nr-app mobile app
Projects
None yet
Development

No branches or pull requests

2 participants