From 10a6b7272a37b09e9f19e8dce66914eb40660b73 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 15 Jun 2026 18:18:12 +0300 Subject: [PATCH] apply same text logic to input --- .../Messages/components/MessageInputReply.tsx | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/screens/Messages/components/MessageInputReply.tsx b/src/screens/Messages/components/MessageInputReply.tsx index 90c404e55c..5d3357b7d6 100644 --- a/src/screens/Messages/components/MessageInputReply.tsx +++ b/src/screens/Messages/components/MessageInputReply.tsx @@ -1,4 +1,5 @@ import {LayoutAnimation, View} from 'react-native' +import {AppBskyEmbedRecord, ChatBskyEmbedJoinLink} from '@atproto/api' import {useLingui} from '@lingui/react/macro' import {HITSLOP_20} from '#/lib/constants' @@ -34,6 +35,19 @@ export function MessageInputReply() { ? createSanitizedDisplayName(senderProfile, false) : null + let text = replyTo.text + let subtle = false + if (!text.trim()) { + subtle = true + if (ChatBskyEmbedJoinLink.isView(replyTo.embed)) { + text = l`(chat invite link)` + } else if (AppBskyEmbedRecord.isView(replyTo.embed)) { + text = l`(contains embedded content)` + } else { + text = l`No text` + } + } + return ( )} - - {replyTo.text} + + {text}