HomePhabricator
Diffusion Comm 9885469a8000

[SQLite] implement C++ code to get keyservers

Description

[SQLite] implement C++ code to get keyservers

Summary:
Code for native ops

Depends on D10776

Test Plan:
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);

Reviewers: inka, marcin

Reviewed By: marcin

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D10780

Details

Provenance
kamilAuthored on Jan 20 2024, 4:40 PM
Reviewer
marcin
Differential Revision
D10780: [SQLite] implement C++ code to get keyservers
Parents
rCOMM4fa3ac20d292: [web] refactor set new session in `redux-setup` to ops
Branches
Unknown
Tags
Unknown