@ai-matrx/messaging 0.13.0 → 0.13.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.
package/dist/react.cjs CHANGED
@@ -1393,12 +1393,12 @@ function createMessagingEngine(options) {
1393
1393
  },
1394
1394
  async openConversation(id) {
1395
1395
  store.setActiveConversation(id);
1396
- store.setConversationReadFailure(id, null);
1397
1396
  try {
1398
1397
  const page = await repository.listMessages(id, { limit: messagePageSize });
1399
1398
  if (page.items.length === 0) {
1400
1399
  await repository.getConversation(id);
1401
1400
  }
1401
+ store.setConversationReadFailure(id, null);
1402
1402
  store.setThread(id, page.items, { hasMoreOlder: page.hasMore });
1403
1403
  } catch (error) {
1404
1404
  const normalized = normalizeMessagingError(error, "openConversation");