@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/CHANGELOG.md +17 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/package.json +3 -3
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");
|