chore: Update translations

This commit is contained in:
2024-04-04 15:32:59 +00:00
parent ee31726961
commit a88fda2a22
6 changed files with 17 additions and 17 deletions

View File

@ -17,7 +17,10 @@ export default function useThreadFeed(link: NostrLink) {
});
sub.withFilter().link(link);
if (root) {
sub.withFilter().link(root).relay(rootRelays ?? []);
sub
.withFilter()
.link(root)
.relay(rootRelays ?? []);
}
const grouped = [link, ...allEvents].reduce(
(acc, v) => {
@ -29,7 +32,8 @@ export default function useThreadFeed(link: NostrLink) {
);
for (const v of Object.values(grouped)) {
sub.withFilter()
sub
.withFilter()
.kinds([EventKind.TextNote])
.replyToLink(v)
.relay(rootRelays ?? []);
@ -79,10 +83,13 @@ export default function useThreadFeed(link: NostrLink) {
const relays = system.relayCache.getFromCache(rootEvent.pubkey);
if (relays) {
const readRelays = randomSample(relays.relays.filter(a => a.settings.read).map(a => a.url), 3);
const readRelays = randomSample(
relays.relays.filter(a => a.settings.read).map(a => a.url),
3,
);
setRootRelays(readRelays);
}
})
});
}
}
}, [link, root, store?.length]);