Skip to content

Commit

Permalink
feat(lib): rm
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-suwala committed Nov 22, 2024
1 parent 2f425f4 commit 28eceae
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ import { useNavigation } from "@react-navigation/native"

type MessageTextProps = {
onGoToMessage: (message: Message) => void
isBeingEdited?: boolean
messageProps: Bubble<EnhancedIMessage>["props"]
}

export function MessageText({ onGoToMessage, messageProps, isBeingEdited }: MessageTextProps) {
export function MessageText({ onGoToMessage, messageProps }: MessageTextProps) {
const { chat, setCurrentChannel } = useContext(ChatContext)
const navigation = useNavigation()
const [imageSrc, setImageSrc] = useState("")
Expand Down Expand Up @@ -147,7 +146,7 @@ export function MessageText({ onGoToMessage, messageProps, isBeingEdited }: Mess

if (messageElements) {
return (
<View style={isBeingEdited ? { borderWidth: 1, borderColor: "red" } : undefined}>
<View>
{messageProps.currentMessage?.originalPnMessage.quotedMessage ? (
<Quote
message={messageProps.currentMessage?.originalPnMessage.quotedMessage}
Expand Down

0 comments on commit 28eceae

Please sign in to comment.