Code for native ops
Depends on D10776
Differential D10780
[SQLite] implement C++ code to get keyservers Authored by kamil on Jan 22 2024, 1:29 PM.
Details
Code for native ops Depends on D10776 Call this code: let data = await commCoreModule.getClientDBStore();
console.log(data.keyservers);
await commCoreModule.processKeyserverStoreOperations([
{
type: 'replace_keyserver',
payload: {
id: '1',
keyserverInfo: 'fdfd',
},
},
{
type: 'replace_keyserver',
payload: {
id: '2',
keyserverInfo: 'fdfd',
},
},
]);
data = await commCoreModule.getClientDBStore();
console.log(data.keyservers);
await commCoreModule.processKeyserverStoreOperations([
{
type: 'replace_keyserver',
payload: {
id: '2',
keyserverInfo: 'fdfd45454545',
},
},
]);
data = await commCoreModule.getClientDBStore();
console.log(data.keyservers);
await commCoreModule.processKeyserverStoreOperations([
{
type: 'remove_keyserver',
payload: {
id: '1',
},
},
]);
data = await commCoreModule.getClientDBStore();
console.log(data.keyservers);
await commCoreModule.processKeyserverStoreOperations([
{
type: 'remove_all_keyservers',
},
]);
data = await commCoreModule.getClientDBStore();
console.log(data.keyservers);
Diff Detail
Event Timeline
Comment Actions We discussed this offline and agreed that it would be good if someone else had a look as well - I don't feel confident reviewing this code.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||