@ai-matrx/messaging 0.10.3 → 0.10.5

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.
package/dist/react.js CHANGED
@@ -1115,7 +1115,9 @@ function createMessagingEngine(options) {
1115
1115
  openChannels.get(message.conversationId)?.send(MESSAGING_EVENTS.message, message);
1116
1116
  }
1117
1117
  async function reloadInbox() {
1118
+ if (disposed) return;
1118
1119
  const page = await repository.listConversations({ limit: conversationPageSize });
1120
+ if (disposed) return;
1119
1121
  conversationCursor = page.nextCursor;
1120
1122
  store.setConversations(page.items, page.hasMore);
1121
1123
  }
@@ -1160,7 +1162,7 @@ function createMessagingEngine(options) {
1160
1162
  const message = projectMessage(row, identity.organizationId);
1161
1163
  const known = store.snapshot().conversations.some((item) => item.conversation.id === message.conversationId);
1162
1164
  if (!known) {
1163
- void reloadInbox();
1165
+ void reloadInbox().catch((error) => reportError(error, "inboxRefresh"));
1164
1166
  return;
1165
1167
  }
1166
1168
  store.ingest(message);
@@ -1176,7 +1178,7 @@ function createMessagingEngine(options) {
1176
1178
  filter: `user_id=eq.${identity.userId}`,
1177
1179
  rowId: (row) => typeof row["id"] === "string" ? row["id"] : void 0,
1178
1180
  onChange: () => {
1179
- void reloadInbox();
1181
+ void reloadInbox().catch((error) => reportError(error, "inboxRefresh"));
1180
1182
  }
1181
1183
  }
1182
1184
  ],
@@ -2968,8 +2970,7 @@ function MessageBubble(props) {
2968
2970
  "button",
2969
2971
  {
2970
2972
  type: "button",
2971
- className: "mx-msg__button mx-msg__button--ghost",
2972
- style: { minWidth: 24, minHeight: 24, fontSize: 13 },
2973
+ className: "mx-msg__button mx-msg__button--ghost mx-msg__message-action",
2973
2974
  onClick: () => props.onReply?.(message),
2974
2975
  "aria-label": "Reply",
2975
2976
  children: /* @__PURE__ */ jsx4(ReplyIcon, {})