bug: feed loading

This commit is contained in:
2023-04-25 18:01:29 +01:00
parent 6219626ba0
commit 46fc4500d7
5 changed files with 41 additions and 27 deletions

View File

@ -212,14 +212,13 @@ export class NostrSystem {
this.#changed();
return unwrap(q.feed) as Readonly<T>;
} else {
const subQ = new Query(`${q.id}-${q.subQueries.length + 1}`, filters);
const subQ = new Query(`${q.id}-${q.subQueries.length + 1}`, filters, q.feed);
q.subQueries.push(subQ);
q.filters = filters;
const f = unwrap(q.feed);
f.loading = true;
q.feed.loading = true;
this.SendQuery(subQ);
this.#changed();
return f as Readonly<T>;
return q.feed as Readonly<T>;
}
} else {
return this.AddQuery<T>(type, req);