@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/index.js CHANGED
@@ -1385,12 +1385,12 @@ function createMessagingEngine(options) {
1385
1385
  },
1386
1386
  async openConversation(id) {
1387
1387
  store.setActiveConversation(id);
1388
- store.setConversationReadFailure(id, null);
1389
1388
  try {
1390
1389
  const page = await repository.listMessages(id, { limit: messagePageSize });
1391
1390
  if (page.items.length === 0) {
1392
1391
  await repository.getConversation(id);
1393
1392
  }
1393
+ store.setConversationReadFailure(id, null);
1394
1394
  store.setThread(id, page.items, { hasMoreOlder: page.hasMore });
1395
1395
  } catch (error) {
1396
1396
  const normalized = normalizeMessagingError(error, "openConversation");