Turn off the accepted rules and fix the design tokens, alt text, and last type errors. [skip build]
Checks / checks (push) Successful in 2m18s
Trigger cinny-mobile / dispatch (push) Successful in 1s

This commit is contained in:
2026-11-03 01:10:06 +11:00
parent 3db9b499af
commit 17d1eef572
73 changed files with 283 additions and 217 deletions
+5 -1
View File
@@ -7,8 +7,12 @@ export type StateEventCallback = (
lastStateEvent: MatrixEvent | null,
) => void;
export const useStateEventCallback = (mx: MatrixClient, onStateEvent: StateEventCallback) => {
export const useStateEventCallback = (
mx: MatrixClient | undefined,
onStateEvent: StateEventCallback,
) => {
useEffect(() => {
if (!mx) return undefined;
mx.on(RoomStateEvent.Events, onStateEvent);
return () => {
mx.removeListener(RoomStateEvent.Events, onStateEvent);