nucleus-core-ts 0.9.171 → 0.9.172
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.
|
@@ -54,7 +54,18 @@ export function useChat(props) {
|
|
|
54
54
|
payload: {
|
|
55
55
|
id: conversationId
|
|
56
56
|
},
|
|
57
|
-
onAfterHandle: ()=>{
|
|
57
|
+
onAfterHandle: ()=>{
|
|
58
|
+
// The server excludes the reader from the `conversation.read` broadcast,
|
|
59
|
+
// so any external unread indicator (e.g. a header bell) won't otherwise
|
|
60
|
+
// know to refresh. Notify it once the read has been persisted.
|
|
61
|
+
if (typeof window !== 'undefined') {
|
|
62
|
+
window.dispatchEvent(new CustomEvent('nucleus:chat-read', {
|
|
63
|
+
detail: {
|
|
64
|
+
conversationId
|
|
65
|
+
}
|
|
66
|
+
}));
|
|
67
|
+
}
|
|
68
|
+
},
|
|
58
69
|
onErrorHandle: ()=>{}
|
|
59
70
|
});
|
|
60
71
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nucleus-core-ts",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.172",
|
|
4
4
|
"description": "Production-ready, enterprise-grade TypeScript framework for building multi-tenant APIs",
|
|
5
5
|
"author": "Hidayet Can Özcan <hidayetcan@gmail.com>",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|