Skip to content

Commit

Permalink
fix: Context Menu Crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Risch committed Aug 28, 2024
1 parent 815cf3c commit 70bc25d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/Chat/Message/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ type Props = {
isFrame: boolean;
};

const noop = () => {};

const MessageSender = ({ message }: { message: MessageToDisplay }) => {
const address = useInboxIdStore(
(s) => s.byInboxId[message.senderAddress]?.[0] ?? message.senderAddress
Expand Down Expand Up @@ -327,6 +329,8 @@ function ChatMessage({ message, colorScheme, isGroup, isFrame }: Props) {
styles.innerBubble,
message.fromMe ? styles.innerBubbleMe : undefined,
]}
delayLongPress={100}
onLongPress={noop}
delayPressIn={isDesktop ? 0 : 75}
onPress={() => {
converseEventEmitter.emit("scrollChatToMessage", {
Expand Down

0 comments on commit 70bc25d

Please sign in to comment.