Skip to content

Commit

Permalink
ndk kTextNodeKind
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-lox committed Jan 4, 2025
1 parent 2ce045b commit 7d4d383
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/data_layer/repositories/note_repository_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class NoteRepositoryImpl implements NoteRepository {
Stream<NostrNote> getAllNotes() {
ndk.Filter filter = ndk.Filter(
authors: [],
kinds: [ndk_entities.Nip01Event.TEXT_NODE_KIND],
kinds: [ndk_entities.Nip01Event.kTextNodeKind],
);

final response = dartNdkSource.dartNdk.requests
Expand All @@ -40,14 +40,14 @@ class NoteRepositoryImpl implements NoteRepository {
}) {
ndk.Filter filter = ndk.Filter(
ids: [noteId],
kinds: [ndk_entities.Nip01Event.TEXT_NODE_KIND],
kinds: [ndk_entities.Nip01Event.kTextNodeKind],
);

final response = dartNdkSource.dartNdk.requests.query(
filters: [filter],
name: 'getTextNote-',
explicitRelays: explicitRelays,
timeout: Duration(seconds: 5),
timeout: Duration(seconds: 15),
cacheRead: true,
cacheWrite: true,
);
Expand All @@ -69,7 +69,7 @@ class NoteRepositoryImpl implements NoteRepository {
}) {
ndk.Filter filter = ndk.Filter(
authors: authors,
kinds: [ndk_entities.Nip01Event.TEXT_NODE_KIND],
kinds: [ndk_entities.Nip01Event.kTextNodeKind],
since: since,
until: until,
limit: limit,
Expand Down Expand Up @@ -123,7 +123,7 @@ class NoteRepositoryImpl implements NoteRepository {
name: requestId,
cacheRead: true,
cacheWrite: true,
timeout: Duration(seconds: 5),
timeout: Duration(seconds: 15),
);

return response.stream.map(
Expand Down Expand Up @@ -177,7 +177,7 @@ class NoteRepositoryImpl implements NoteRepository {
}) {
ndk.Filter filter = ndk.Filter(
authors: authors,
kinds: [ndk_entities.Nip01Event.TEXT_NODE_KIND],
kinds: [ndk_entities.Nip01Event.kTextNodeKind],
since: since,
until: until,
limit: limit,
Expand Down Expand Up @@ -208,7 +208,7 @@ class NoteRepositoryImpl implements NoteRepository {
}) {
ndk.Filter filter = ndk.Filter(
eTags: [rootNoteId],
kinds: [ndk_entities.Nip01Event.TEXT_NODE_KIND],
kinds: [ndk_entities.Nip01Event.kTextNodeKind],
);

final response = dartNdkSource.dartNdk.requests.subscription(
Expand Down Expand Up @@ -250,7 +250,7 @@ class NoteRepositoryImpl implements NoteRepository {
);

final response = dartNdkSource.dartNdk.requests.query(
timeout: Duration(seconds: 5),
timeout: Duration(seconds: 15),
filters: [filter],
name: 'getReactions-${postId.substring(5, 10)}-',
cacheRead: useCache,
Expand Down Expand Up @@ -286,7 +286,7 @@ class NoteRepositoryImpl implements NoteRepository {
);

final response = dartNdkSource.dartNdk.requests.query(
timeout: Duration(seconds: 5),
timeout: Duration(seconds: 15),
filters: [filter],
name: 'getReposts',
cacheRead: cacheEnabled,
Expand Down

0 comments on commit 7d4d383

Please sign in to comment.