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
@@ -14,6 +14,7 @@ import {
import FocusTrap from 'focus-trap-react';
import { useAtomValue } from 'jotai';
import { EventType } from 'matrix-js-sdk';
import type { RoomJoinRulesEventContent } from 'matrix-js-sdk/lib/@types/state_events';
import { Icon, Icons } from '../../components/icons';
import { useAllJoinedRoomsSet, useGetRoom } from '../../hooks/useGetRoom';
import { SpaceProvider } from '../../hooks/useSpace';
@@ -78,7 +79,7 @@ function CreateRoomModal({ state }: CreateRoomModalProps) {
'',
);
if (parentJoinRulesEvent) {
const joinRulesContent = parentJoinRulesEvent.getContent();
const joinRulesContent = parentJoinRulesEvent.getContent<RoomJoinRulesEventContent>();
await mx.sendStateEvent(newRoomId, EventType.RoomJoinRules, joinRulesContent, '');
}