fix: remove limit from NIP-17 gift wrap query

Fetch all gift wraps (kind 1059) instead of limiting to 100, ensuring
no encrypted DMs are missed when loading conversations.
This commit is contained in:
Claude
2026-01-12 22:38:47 +00:00
parent 838faeaf45
commit f6d084da51

View File

@@ -319,10 +319,10 @@ export class Nip17Adapter extends ChatProtocolAdapter {
);
// Subscribe to kind 1059 (gift wraps) addressed to us
// No limit - fetch all gift wraps to ensure we don't miss any
const filter: Filter = {
kinds: [1059],
"#p": [activePubkey],
limit: options?.limit || 100,
};
if (options?.before) {