Page MenuHomePhabricator

[lib] Use sqlite for message store local instead of redux persist
ClosedPublic

Authored by will on Jun 12 2024, 2:03 PM.
Tags
None
Referenced Files
F2833069: D12409.diff
Sat, Sep 28, 6:41 AM
Unknown Object (File)
Wed, Sep 25, 11:26 PM
Unknown Object (File)
Wed, Sep 25, 11:26 PM
Unknown Object (File)
Wed, Sep 25, 11:26 PM
Unknown Object (File)
Wed, Sep 25, 4:12 PM
Unknown Object (File)
Wed, Sep 25, 4:12 PM
Unknown Object (File)
Sat, Sep 7, 9:15 AM
Unknown Object (File)
Fri, Sep 6, 11:55 PM
Subscribers

Details

Summary

This diff is in anticipation for when we want to use sqlite for message store local instead of redux persist. This should only be landed after the message store local sqlite diffs have been landed on master for a while and no errors are confirmed with the assertion function.

Depends on D12384

Test Plan

When landing, will verify that the sqlite data is properly reflected on app start on both native and web

Diff Detail

Repository
rCOMM Comm
Branch
sqlite/local_message_store
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

will requested review of this revision.Jun 12 2024, 2:20 PM
tomek requested changes to this revision.Jun 13 2024, 3:56 AM

It might be a good idea to create a task tracking landing this.

lib/reducers/message-reducer.js
1781 ↗(On Diff #41254)

Are you really sure that messageStore will contain local messages from the payload? It looks like we're using them only in !payloadMessages case.

This revision now requires changes to proceed.Jun 13 2024, 3:56 AM

return local messages when there are payloadMessages

lib/reducers/message-reducer.js
1781 ↗(On Diff #41254)

You're correct. Took another look and it looks like all that needs to be done is including the action payload local messages as part of updatedMessageStore which are then included as part of the new message store and the processed messages store

This revision is now accepted and ready to land.Aug 14 2024, 9:11 AM