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
Unknown Object (File)
Thu, Dec 19, 6:39 AM
Unknown Object (File)
Wed, Dec 18, 7:01 AM
Unknown Object (File)
Wed, Dec 18, 7:01 AM
Unknown Object (File)
Wed, Dec 18, 7:01 AM
Unknown Object (File)
Wed, Dec 18, 7:01 AM
Unknown Object (File)
Wed, Dec 18, 7:01 AM
Unknown Object (File)
Tue, Dec 3, 6:29 PM
Unknown Object (File)
Nov 21 2024, 12:39 AM
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