HomePhabricator
Diffusion Comm 67c2eb992567

[sqlite] Implement C++ message store local ops

Description

[sqlite] Implement C++ message store local ops

Summary:
Introduces code allowing native to use sqlite message store local ops

Depends on D12248

Test Plan:
Tested further in stack. Ran the following code:

let data = await commCoreModule.getClientDBStore();

await commCoreModule.processDBStoreOperations({
  messageStoreOperations: [
  {
    type: 'replace_local_message_info',
    payload: {
      id: '1',
      localMessageInfo: JSON.stringify({
        sendFailed: "1",
      }),
    }
  },
  {
    type: 'replace_local_message_info',
    payload: {
      id: '2',
      localMessageInfo: JSON.stringify({
        sendFailed: "0",
      }),
    }
  },
  {
    type: 'remove_local_message_infos',
    payload: {
      ids: ['1'],
    }
  },
]});

And confirmed correct result

Reviewers: kamil, tomek, ginsu

Reviewed By: tomek

Subscribers: ashoat

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

Details

Provenance
willAuthored on May 21 2024, 8:32 AM
Reviewer
tomek
Differential Revision
D12249: [sqlite] Implement C++ message store local ops
Parents
rCOMMbdba9420dabf: [native] introduce RemoveTagButton
Branches
Unknown
Tags
Unknown