@lvce-editor/chat-storage-worker 1.1.0 → 1.2.0
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.
|
@@ -1464,8 +1464,8 @@ const createDefaultStorage = () => {
|
|
|
1464
1464
|
return new IndexedDbChatSessionStorage();
|
|
1465
1465
|
};
|
|
1466
1466
|
let chatSessionStorage = createDefaultStorage();
|
|
1467
|
-
const
|
|
1468
|
-
chatSessionStorage
|
|
1467
|
+
const setSession = async session => {
|
|
1468
|
+
await chatSessionStorage.setSession(session);
|
|
1469
1469
|
};
|
|
1470
1470
|
const listChatSessions = async () => {
|
|
1471
1471
|
const sessions = await chatSessionStorage.listSessions();
|
|
@@ -1527,7 +1527,7 @@ const commandMap = {
|
|
|
1527
1527
|
'ChatStorage.getEvents': getChatViewEvents,
|
|
1528
1528
|
'ChatStorage.getSession': getChatSession,
|
|
1529
1529
|
'ChatStorage.listSessions': listChatSessions,
|
|
1530
|
-
'ChatStorage.setSession':
|
|
1530
|
+
'ChatStorage.setSession': setSession,
|
|
1531
1531
|
'HandleMessagePort.handleMessagePort': handleMessagePort
|
|
1532
1532
|
};
|
|
1533
1533
|
|