remove reply swipe from example

Signed-off-by: Shea <[email protected]>
This commit is contained in:
Shea committed 2026-06-20 04:29:52 +03:00
1 parent 2508a73e2b
commit a1edee40ce
2 files changed
+3 -4

No files matched your search

@@ -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;
}
+1 -2
View File
@@ -269,7 +269,7 @@ type WrappedMessageProps = {
msgContentJSX: JSX.Element;
messageLayout?: MessageLayout;
onDoubleTap: () => void;
handleSwipeReply: () => void;
handleSwipeReply?: () => void;
handleContextMenu: MouseEventHandler<HTMLDivElement>;
align?: 'left' | 'right';
};
@@ -829,7 +829,6 @@ function MessageInternal(
msgContentJSX={msgContentJSX}
messageLayout={messageLayout}
onDoubleTap={() => {}}
handleSwipeReply={() => {}}
handleContextMenu={() => {}}
align={useRightBubbles && senderId === mx.getUserId() ? 'right' : 'left'}
/>