mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-04 22:40:29 +03:00
Prepare for PR #2335
This commit is contained in:
parent
3e39694d7b
commit
c61d74ade3
1 changed files with 1 additions and 2 deletions
|
|
@ -65,7 +65,6 @@ export function RoomView({ room, eventId }: { room: Room; eventId?: string }) {
|
|||
const [hideActivity] = useSetting(settingsAtom, 'hideActivity');
|
||||
|
||||
const screenSize = useScreenSizeContext();
|
||||
|
||||
const { roomId } = room;
|
||||
const editor = useEditor();
|
||||
|
||||
|
|
@ -103,7 +102,7 @@ export function RoomView({ room, eventId }: { room: Room; eventId?: string }) {
|
|||
);
|
||||
|
||||
useEffect(() => {
|
||||
if (screenSize === ScreenSize.Desktop && canMessage) {
|
||||
if (screenSize === ScreenSize.Desktop && canMessage && editor) {
|
||||
ReactEditor.focus(editor);
|
||||
}
|
||||
}, [editor, screenSize, canMessage]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue