MCPcopy Create free account
hub / github.com/OpenAnonymity/oa-chat / saveSetting

Method saveSetting

chat/db.js:610–619  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

608 resolve();
609 }
610 };
611 request.onerror = () => reject(request.error);
612 });
613 }
614
615 async deleteMessage(messageId) {
616 return new Promise((resolve, reject) => {
617 const transaction = this.db.transaction(['messages'], 'readwrite');
618 const store = transaction.objectStore('messages');
619 const request = store.delete(messageId);
620
621 request.onsuccess = () => {
622 this.emitStorageEvent('messages-updated', { messageId });

Callers 15

initMethod · 0.80
importSharedSessionMethod · 0.80
createSessionMethod · 0.80
switchSessionMethod · 0.80
clearCurrentSessionMethod · 0.80
setMemoryAutoIncludeMethod · 0.80
setMemoryAgentModelMethod · 0.80
deleteSessionMethod · 0.80
forkConversationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected