From 43d803d73fe00ba2d19304e99bc203f939aec643 Mon Sep 17 00:00:00 2001 From: maaz519 Date: Sat, 25 Jul 2026 17:07:15 +0530 Subject: [PATCH] =?UTF-8?q?fix(messenger):=20SDK=200.1.10=20=E2=80=94=20re?= =?UTF-8?q?adable=20code=20chips,=20no=20raw=20markers=20in=20previews?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Picks up the code-chip contrast fix (inline code was invisible on your own bubbles) and stripMarkup(). Also applies stripMarkup to the notification toast, which had the same problem — a formatted message toasted as "~crazy~". Co-Authored-By: Claude Opus 4.8 --- package-lock.json | 8 ++++---- package.json | 2 +- src/components/dashboard/notification-center.tsx | 5 +++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index a9d6a6c..4b81ad5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@huggingface/transformers": "^4.2.0", "@imgly/background-removal": "^1.7.0", "@insignia/iios-kernel-client": "^0.1.4", - "@insignia/iios-messaging-ui": "^0.1.9", + "@insignia/iios-messaging-ui": "^0.1.10", "@photo-gallery/sdk": "file:./vendor/photo-gallery-sdk", "@tensorflow-models/coco-ssd": "^2.2.3", "@tensorflow/tfjs": "^4.22.0", @@ -1087,9 +1087,9 @@ } }, "node_modules/@insignia/iios-messaging-ui": { - "version": "0.1.9", - "resolved": "https://git.lynkedup.cloud/api/packages/insignia/npm/%40insignia%2Fiios-messaging-ui/-/0.1.9/iios-messaging-ui-0.1.9.tgz", - "integrity": "sha512-9kHCoYHkz1rsqJGI9l1JLQOEickUE7ujuEihM0Wx+TYowir25WTN+j5ukf04Tse3ZmyMEtgd2BNE1zmKgNGD6Q==", + "version": "0.1.10", + "resolved": "https://git.lynkedup.cloud/api/packages/insignia/npm/%40insignia%2Fiios-messaging-ui/-/0.1.10/iios-messaging-ui-0.1.10.tgz", + "integrity": "sha512-FiaanbZnoh+P6Tvcf6Xe0YhJf+qi+2B1zGAtauo5yfNSn6pH9LL5X2mzOmIbgZY8WGldccC5eX7ArnXuhvOvrw==", "peerDependencies": { "@insignia/iios-kernel-client": "*", "react": ">=18", diff --git a/package.json b/package.json index a65f75e..e4e1713 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "@huggingface/transformers": "^4.2.0", "@imgly/background-removal": "^1.7.0", "@insignia/iios-kernel-client": "^0.1.4", - "@insignia/iios-messaging-ui": "^0.1.9", + "@insignia/iios-messaging-ui": "^0.1.10", "@photo-gallery/sdk": "file:./vendor/photo-gallery-sdk", "@tensorflow-models/coco-ssd": "^2.2.3", "@tensorflow/tfjs": "^4.22.0", diff --git a/src/components/dashboard/notification-center.tsx b/src/components/dashboard/notification-center.tsx index fa88c4b..0cbb38c 100644 --- a/src/components/dashboard/notification-center.tsx +++ b/src/components/dashboard/notification-center.tsx @@ -7,7 +7,7 @@ import { useEffect, useMemo, useRef } from "react"; import { useAppShell, useAuth } from "@abe-kap/appshell-sdk/react"; -import type { MessagingAdapter } from "@insignia/iios-messaging-ui"; +import { stripMarkup, type MessagingAdapter } from "@insignia/iios-messaging-ui"; import { isShellConfigured } from "@/lib/appshell"; import { useRealtime } from "@/lib/realtime"; import { CrmMessagingAdapter, type DataDoor } from "@/lib/crm-messaging-adapter"; @@ -39,7 +39,8 @@ export function NotificationCenter({ active, onNavigate }: { active: string; onN toast.push({ tone: "info", title: "New message", - desc: message.text?.slice(0, 90) || "You have a new message", + // Toasts are plain text, so drop the formatting markers rather than show "~crazy~". + desc: (message.text ? stripMarkup(message.text).slice(0, 90) : "") || "You have a new message", onClick: () => onNavigate("messenger", threadId), }); });