chore: Update translations

This commit is contained in:
kieran 2024-11-22 16:41:14 +00:00
parent 4936e79aa3
commit 44a9c2fefe
2 changed files with 7 additions and 8 deletions

View File

@ -69,14 +69,17 @@ export function LiveChat({
className?: string;
autoRaid?: boolean;
}) {
const relays = dedupe(removeUndefined(ev?.tags.filter(a => a[0] === "relays").map(a => sanitizeRelayUrl(a[1])) ?? []));
const relays = dedupe(
removeUndefined(ev?.tags.filter(a => a[0] === "relays").map(a => sanitizeRelayUrl(a[1])) ?? []),
);
const host = getHost(ev);
const feed = useReactions(
`live:${link?.id}:${link?.author}:reactions`,
goal ? [link, NostrLink.fromEvent(goal)] : [link],
rb => {
if (link) {
rb.withFilter().kinds([LIVE_STREAM_CHAT, LIVE_STREAM_RAID, LIVE_STREAM_CLIP])
rb.withFilter()
.kinds([LIVE_STREAM_CHAT, LIVE_STREAM_RAID, LIVE_STREAM_CLIP])
.replyToLink([link])
.relay(relays)
.limit(200);
@ -227,11 +230,7 @@ export function LiveChat({
{(canWrite ?? true) && (
<div className="flex gap-2 border-t py-2 border-layer-1">
{login ? (
<WriteMessage
emojiPacks={allEmojiPacks}
link={link}
relays={relays}
/>
<WriteMessage emojiPacks={allEmojiPacks} link={link} relays={relays} />
) : (
<p>
<FormattedMessage defaultMessage="Please login to write messages!" id="RXQdxR" />

View File

@ -47,7 +47,7 @@ const hasWasm = "WebAssembly" in globalThis;
const workerRelay = new WorkerRelayInterface(
import.meta.env.DEV ? new URL("@snort/worker-relay/dist/esm/worker.mjs", import.meta.url) : new WorkerVite(),
);
EventBuilder.ClientTag = ["client", "zap.stream", __ZAP_STREAM_VERSION__]
EventBuilder.ClientTag = ["client", "zap.stream", __ZAP_STREAM_VERSION__];
const System = new NostrSystem({
optimizer: hasWasm ? WasmOptimizer : undefined,
cachingRelay: workerRelay,