Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

fix: Chunk kind-5 deletion events in deleteDeprecatedKind4 to avoid relay payload limits #17

Description

@coderabbitai

marmot

Summary

In js/actions.js, deleteDeprecatedKind4() currently packs all collected kind-4 event IDs into a single kind-5 deletion event. On accounts with large NIP-04 DM histories, this single event can exceed relay payload/message size limits, causing silent total failure of the cleanup operation.

Problem

A single kind-5 event with thousands of e tags may be rejected by relays that enforce maximum message size constraints, with no partial success — the entire deletion silently fails.

Expected Behavior

Kind-5 deletion events should be chunked into smaller batches so that relay payload limits are respected and partial progress is possible even if some batches fail.

References

Requested by @dannym-arx

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions