style: apply prettier across fork files
check:prettier was not part of my gate routine, so formatting drift accumulated across the session's touched files (and a few older ones). Run prettier --write to bring the repo back to 'All matched files use Prettier code style!'. Formatting only — no logic changes. tsc/tests/build all green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -6,9 +6,7 @@ import { getAccountData } from '../utils/room';
|
||||
|
||||
export function useAccountData(eventType: string): MatrixEvent | undefined {
|
||||
const mx = useMatrixClient();
|
||||
const [event, setEvent] = useState<MatrixEvent | undefined>(() =>
|
||||
getAccountData(mx, eventType),
|
||||
);
|
||||
const [event, setEvent] = useState<MatrixEvent | undefined>(() => getAccountData(mx, eventType));
|
||||
|
||||
useAccountDataCallback(
|
||||
mx,
|
||||
|
||||
@@ -46,7 +46,10 @@ export function useRoomThreads(room: Room): Thread[] {
|
||||
// Force the first push, then pull the full server-known thread list.
|
||||
sigRef.current = '';
|
||||
refresh();
|
||||
room.fetchRoomThreads().then(refresh).catch(() => undefined);
|
||||
room
|
||||
.fetchRoomThreads()
|
||||
.then(refresh)
|
||||
.catch(() => undefined);
|
||||
|
||||
room.on(ThreadEvent.New, refresh);
|
||||
room.on(ThreadEvent.NewReply, refresh);
|
||||
|
||||
Reference in New Issue
Block a user