chore: Update translations
This commit is contained in:
parent
4936e79aa3
commit
44a9c2fefe
@ -69,14 +69,17 @@ export function LiveChat({
|
|||||||
className?: string;
|
className?: string;
|
||||||
autoRaid?: boolean;
|
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 host = getHost(ev);
|
||||||
const feed = useReactions(
|
const feed = useReactions(
|
||||||
`live:${link?.id}:${link?.author}:reactions`,
|
`live:${link?.id}:${link?.author}:reactions`,
|
||||||
goal ? [link, NostrLink.fromEvent(goal)] : [link],
|
goal ? [link, NostrLink.fromEvent(goal)] : [link],
|
||||||
rb => {
|
rb => {
|
||||||
if (link) {
|
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])
|
.replyToLink([link])
|
||||||
.relay(relays)
|
.relay(relays)
|
||||||
.limit(200);
|
.limit(200);
|
||||||
@ -227,11 +230,7 @@ export function LiveChat({
|
|||||||
{(canWrite ?? true) && (
|
{(canWrite ?? true) && (
|
||||||
<div className="flex gap-2 border-t py-2 border-layer-1">
|
<div className="flex gap-2 border-t py-2 border-layer-1">
|
||||||
{login ? (
|
{login ? (
|
||||||
<WriteMessage
|
<WriteMessage emojiPacks={allEmojiPacks} link={link} relays={relays} />
|
||||||
emojiPacks={allEmojiPacks}
|
|
||||||
link={link}
|
|
||||||
relays={relays}
|
|
||||||
/>
|
|
||||||
) : (
|
) : (
|
||||||
<p>
|
<p>
|
||||||
<FormattedMessage defaultMessage="Please login to write messages!" id="RXQdxR" />
|
<FormattedMessage defaultMessage="Please login to write messages!" id="RXQdxR" />
|
||||||
|
@ -47,7 +47,7 @@ const hasWasm = "WebAssembly" in globalThis;
|
|||||||
const workerRelay = new WorkerRelayInterface(
|
const workerRelay = new WorkerRelayInterface(
|
||||||
import.meta.env.DEV ? new URL("@snort/worker-relay/dist/esm/worker.mjs", import.meta.url) : new WorkerVite(),
|
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({
|
const System = new NostrSystem({
|
||||||
optimizer: hasWasm ? WasmOptimizer : undefined,
|
optimizer: hasWasm ? WasmOptimizer : undefined,
|
||||||
cachingRelay: workerRelay,
|
cachingRelay: workerRelay,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user