cheogram-www

created pr with cheogram-www/react-compiler-fixes.1 on 2026-11-10T18:57:22Z · by 3c31bc8c
commented on 2026-11-10T18:57:22Z · by 3c31bc8c
Changes are available at https://tangled.org/mrry.band/cheogram-www on branch react-compiler-fixes.
cmds
checkout latest patchset:
ssh pr.pico.sh pull cheogram-www:react-compiler-fixes | git am -3
checkout specific patchset revision:
ssh pr.pico.sh pull cheogram-www:react-compiler-fixes [rev] | git am -3
add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh cheogram-www:react-compiler-fixes
add comment to patch request:
ssh pr.pico.sh comment cheogram-www:react-compiler-fixes "lgtm!"
+0 -1 scripts/compiler.test.mjs #
......@@ -4,7 +4,6 @@ import { test } from "node:test";
44 import { createServer } from "vite";
55
66 const compilerSkips = new Set([
7- "components/Chat.tsx",
87 "components/Chats.tsx",
98 "components/Login.tsx",
109 "components/MessageDebugger.tsx",
+19 -19 src/components/Chat.tsx #
......@@ -852,25 +852,25 @@ export const ChatInner = () => {
852852 activeChat instanceof borogove.Channel && !activeChat.isPrivate();
853853 setAttachmentError(null);
854854 setAttachmentProgress(true);
855- try {
856- await Promise.all(
857- files.map((file) =>
858- client.prepareAttachment(file, !isPublicChat).then((attachment) => {
859- if (attachment === null) throw new Error("Attachment failed");
860-
861- setAttachments((existing) => [
862- ...existing,
863- { attachment, uri: URL.createObjectURL(file) },
864- ]);
865- }),
866- ),
867- );
868- } catch (error) {
869- console.error("Attachment upload failed", error);
870- setAttachmentError(attachmentErrorMessage(error));
871- } finally {
872- setAttachmentProgress(false);
873- }
855+ await Promise.all(
856+ files.map((file) =>
857+ client.prepareAttachment(file, !isPublicChat).then((attachment) => {
858+ if (attachment === null) throw new Error("Attachment failed");
859+
860+ setAttachments((existing) => [
861+ ...existing,
862+ { attachment, uri: URL.createObjectURL(file) },
863+ ]);
864+ }),
865+ ),
866+ )
867+ .catch((error) => {
868+ console.error("Attachment upload failed", error);
869+ setAttachmentError(attachmentErrorMessage(error));
870+ })
871+ .finally(() => {
872+ setAttachmentProgress(false);
873+ });
874874 };
875875
876876 const handleAttach = () => {
Back to top