@adminide-stack/yantra-mobile 12.0.198-alpha.0 → 12.0.198-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -491,18 +491,21 @@ function CanvasExperienceBody({
491
491
  const boardManager = useMemo(() => {
492
492
  if (!indexUrl || !token) return void 0;
493
493
  const backend = deriveBackendGraphqlUrl(indexUrl);
494
+ const chat = backend ? {
495
+ url: backend,
496
+ token
497
+ } : null;
494
498
  return {
499
+ // `chat` too: a hard delete reads and deletes the board's Media records there.
495
500
  index: {
496
501
  url: indexUrl,
497
502
  token,
498
- run: effectiveRunAction
503
+ run: effectiveRunAction,
504
+ chat
499
505
  },
500
506
  // Not the host's `uploadMedia`, which takes device files: this one reads any fetchable link.
501
507
  uploadCopy: createRemoteUploadMedia(token, indexUrl),
502
- chat: backend ? {
503
- url: backend,
504
- token
505
- } : null,
508
+ chat,
506
509
  refresh: reload,
507
510
  onRemoved: (boardId) => setBoards((prev) => {
508
511
  const next = prev.filter((entry) => entry.channelId !== boardId);