Reduce noisy runtime logging in frontend flows.

This keeps chat, notification, and post interactions cleaner in production while preserving error-level visibility.
This commit is contained in:
2026-03-09 22:18:47 +08:00
parent 3968660048
commit 63e32b15a3
21 changed files with 14 additions and 284 deletions

View File

@@ -312,14 +312,8 @@ export const MessageBubble: React.FC<MessageBubbleProps> = ({
memberMap={memberMap}
replyMessage={getReplyMessage()}
getSenderInfo={getSenderInfo}
onAtPress={(userId) => {
// TODO: 跳转到用户资料页
console.log('At pressed:', userId);
}}
onReplyPress={(messageId) => {
// TODO: 滚动到被回复的消息
console.log('Reply pressed:', messageId);
}}
onAtPress={() => undefined}
onReplyPress={() => undefined}
onImagePress={(url) => {
// 查找点击的图片索引
const clickIndex = imageSegments.findIndex(img => img.url === url);
@@ -343,9 +337,7 @@ export const MessageBubble: React.FC<MessageBubbleProps> = ({
handleLongPress();
}
}}
onLinkPress={(url) => {
console.log('Link pressed:', url);
}}
onLinkPress={() => undefined}
/>
</View>
);