fix(messenger): SDK 0.1.10 — readable code chips, no raw markers in previews
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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),
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user