sdk: fetch and cache profiles.

This commit is contained in:
fiatjaf
2023-10-31 11:00:46 -03:00
parent aaaf608c2b
commit 374dbbe1a0
5 changed files with 47 additions and 15 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ func TestNestedSubscriptions(t *testing.T) {
select {
case event := <-sub.Events:
// now fetch author of this
sub, err := rl.Subscribe(context.Background(), Filters{{Kinds: []int{KindSetMetadata}, Authors: []string{event.PubKey}, Limit: 1}})
sub, err := rl.Subscribe(context.Background(), Filters{{Kinds: []int{KindProfileMetadata}, Authors: []string{event.PubKey}, Limit: 1}})
if err != nil {
t.Errorf("subscription 2 failed: %v", err)
return