diff --git a/src/app/components/MobileSwipeDownModal.tsx b/src/app/components/MobileSwipeDownModal.tsx index 5d085f2d4..629160c17 100644 --- a/src/app/components/MobileSwipeDownModal.tsx +++ b/src/app/components/MobileSwipeDownModal.tsx @@ -48,7 +48,10 @@ export function MobileSwipeDownModal({ children, requestClose }: MobileSwipeDown const handleTouchEnd = () => { const endTime = Date.now(); - if (touchYDiff.current > 100 || (endTime - startTime.current < 600 && touchYDiff.current > 20)) { + if ( + touchYDiff.current > 100 || + (endTime - startTime.current < 600 && touchYDiff.current > 20) + ) { requestClose(); } else { touchYDiff.current = 0; diff --git a/src/app/components/SwipeableMessageWrapper.tsx b/src/app/components/SwipeableMessageWrapper.tsx index db9ca43ca..bb96af68c 100644 --- a/src/app/components/SwipeableMessageWrapper.tsx +++ b/src/app/components/SwipeableMessageWrapper.tsx @@ -70,7 +70,9 @@ function ActiveSwipeWrapper({ children, onReply }: { children: ReactNode; onRepl /> - {children} + + {children} + ); } diff --git a/src/app/hooks/router/useSelectedRoom.ts b/src/app/hooks/router/useSelectedRoom.ts index 88d9c2000..2858c9912 100644 --- a/src/app/hooks/router/useSelectedRoom.ts +++ b/src/app/hooks/router/useSelectedRoom.ts @@ -39,4 +39,3 @@ export const useSelectedOrLastRoom = (): string | undefined => { return listMatch ? lastRoomId : undefined; }; - diff --git a/src/app/state/room/lastRoom.ts b/src/app/state/room/lastRoom.ts index b5ac42ef8..cc0b82455 100644 --- a/src/app/state/room/lastRoom.ts +++ b/src/app/state/room/lastRoom.ts @@ -18,4 +18,3 @@ export const lastVisitedRoomAtom = lastVisitedRoomBaseAtom; /** Returns a read-only derived atom for a single section's last-visited room. */ export const lastVisitedRoomSectionAtom = (sectionKey: string) => atom((get) => get(lastVisitedRoomAtom)[sectionKey]); -