This commit is contained in:
payacom
2026-08-02 21:20:08 +03:30
parent 5ecbcd1f26
commit dc4467d43d
55 changed files with 5429 additions and 920 deletions

View File

@@ -1,5 +1,6 @@
import { parseLocationContent } from "@/components/chat/LocationMessageBubble";
import { parseSharedPost } from "@/components/chat/SharedPostBubble";
import { parseSharedProduct } from "@/components/chat/SharedProductBubble";
import {
extractStoryReactionText,
parseSharedStory,
@@ -54,6 +55,11 @@ export function getCopyableMessageText(
return null;
}
const sharedProduct = parseSharedProduct(content);
if (sharedProduct) {
return sharedProduct.title?.trim() || null;
}
const sharedStory = parseSharedStory(content);
if (sharedStory) {
const reactionText = extractStoryReactionText(content);