decentralized-identity / decentralized-identity/dwn-sdk-js

RecordDelete is not being received in a subscription when it is expected

Open
#759 1 comment 0 reactions 0 assignees View on GitHub
bug hacktoberfest
Dominant language
TypeScript
Stars
322
Forks
99
PR merge metrics
No merged PRs in 30d

Description

#### Example Scenario:
1. Bob installs the chat protocol and creates a thread, adding Alice as a participant.
2. Alice creates a subscription to receive events using the delegated grant.
3. Bob writes two chat messages to the thread.
4. Bob deletes one of the chat messages.

Expected: The subscription handler should have received both the chat writes and the delete.
Actual: The subscription received only the writes.

When subscribing using protocol rules, a set of filters are built to match against the indexes created when storing the Delete.
Investigate modifying the filters/indexing to allow for the expected behavior.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.