From a1edee40ceafc3d9943cfdbd31e261610491571f Mon Sep 17 00:00:00 2001 From: Shea Date: Sat, 20 Jun 2026 04:29:52 +0300 Subject: [PATCH] remove reply swipe from example Signed-off-by: Shea --- src/app/components/SwipeableMessageWrapper.tsx | 4 ++-- src/app/features/room/message/Message.tsx | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/components/SwipeableMessageWrapper.tsx b/src/app/components/SwipeableMessageWrapper.tsx index 1b1acf713..43ab00434 100644 --- a/src/app/components/SwipeableMessageWrapper.tsx +++ b/src/app/components/SwipeableMessageWrapper.tsx @@ -71,7 +71,7 @@ export function SwipeableMessageWrapper({ onReply, }: { children: ReactNode; - onReply: () => void; + onReply?: () => void; }) { const settings = useAtomValue(settingsAtom); @@ -83,7 +83,7 @@ export function SwipeableMessageWrapper({ [settings.mobileGestures, settings.rightSwipeAction] ); - if (!isSwipeToReplyEnabled) { + if (!isSwipeToReplyEnabled || !onReply) { return children; } diff --git a/src/app/features/room/message/Message.tsx b/src/app/features/room/message/Message.tsx index 89c4a867d..ae6563e43 100644 --- a/src/app/features/room/message/Message.tsx +++ b/src/app/features/room/message/Message.tsx @@ -269,7 +269,7 @@ type WrappedMessageProps = { msgContentJSX: JSX.Element; messageLayout?: MessageLayout; onDoubleTap: () => void; - handleSwipeReply: () => void; + handleSwipeReply?: () => void; handleContextMenu: MouseEventHandler; align?: 'left' | 'right'; }; @@ -829,7 +829,6 @@ function MessageInternal( msgContentJSX={msgContentJSX} messageLayout={messageLayout} onDoubleTap={() => {}} - handleSwipeReply={() => {}} handleContextMenu={() => {}} align={useRightBubbles && senderId === mx.getUserId() ? 'right' : 'left'} />