mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-30 05:42:44 -08:00
remove reply swipe from example
Signed-off-by: Shea <[email protected]>
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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'}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user