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/Accounts.tsx",
87 "components/Chat.tsx",
98 "components/Chats.tsx",
109 "components/Login.tsx",
+3 -2 src/components/Accounts.tsx #
......@@ -33,7 +33,7 @@ import {
3333 } from "@fortawesome/free-solid-svg-icons";
3434
3535 import { SettingsContext } from "./Settings";
36-import { useChats, readyServiceWorker } from "../util";
36+import { useChats, readyServiceWorker, reauthenticate } from "../util";
3737
3838 export const Accounts = () => {
3939 const { accounts, setAccounts, persistence, setSettings } =
......@@ -321,7 +321,8 @@ export const Accounts = () => {
321321 id="reauth-form"
322322 onSubmit={(e) => {
323323 e.preventDefault();
324- reauth?.usePassword(e.currentTarget.password.value);
324+ if (reauth)
325+ reauthenticate(reauth, e.currentTarget.password.value);
325326 setStatus("connecting");
326327 setReauth(undefined);
327328 }}
+4 -0 src/util.ts #
......@@ -11,6 +11,10 @@ export const loadEmojiData = async () => ({
1111 ...(await import("@emoji-mart/data")),
1212 });
1313
14+export function reauthenticate(client: borogove.Client, password: string) {
15+ client.usePassword(password);
16+}
17+
1418 export const ios = navigator.userAgent.match(/(iPad|iPhone|iPod)/g);
1519 export const webkit =
1620 navigator.userAgent.match(/AppleWebKit/) &&
Back to top