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
F3487130: D12409.id43412.diff
Wed, Dec 18, 7:01 AM
F3487129: D12409.id43372.diff
Wed, Dec 18, 7:01 AM
F3487128: D12409.id41254.diff
Wed, Dec 18, 7:01 AM
F3487120: D12409.id.diff
Wed, Dec 18, 7:01 AM
F3487111: D12409.diff
Wed, Dec 18, 7:01 AM
Unknown Object (File)
Tue, Dec 3, 6:29 PM
Unknown Object (File)
Thu, Nov 21, 12:39 AM
Unknown Object (File)
Wed, Nov 20, 4:33 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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