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), }); });