This makes the thread activity sqlite operations available on native
Details
Details
Ran the following code:
await commCoreModule.processThreadActivityStoreOperations([ { type: 'replace_thread_activity_entry', payload: { id: 'test_A_id', threadActivityStoreEntry: JSON.stringify({ lastNavigatedTo: 1, lastPruned: 2, }), }, }, { type: 'remove_all_thread_activity_entries', }, { type: 'replace_thread_activity_entry', payload: { id: 'test_B_id', threadActivityStoreEntry: JSON.stringify({ lastNavigatedTo: 3, lastPruned: 4, }), }, }, { type: 'replace_thread_activity_entry', payload: { id: 'test_C_id', threadActivityStoreEntry: JSON.stringify({ lastNavigatedTo: 5, lastPruned: 6, }), }, }, { type: 'remove_thread_activity_entries', payload: { ids: ['test_B_id'], }, }, ]); }
And received the correct data in the native sqlite table
Depends on D11581
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/DataStores/ThreadActivityStore.h | ||
---|---|---|
33 ↗ | (On Diff #38951) | you can add new line here |