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
F3269640: D12409.id41254.diff
Sat, Nov 16, 4:07 AM
F3261205: D12409.id43372.diff
Fri, Nov 15, 10:56 PM
Unknown Object (File)
Fri, Nov 15, 12:05 AM
Unknown Object (File)
Sun, Nov 10, 7:10 AM
Unknown Object (File)
Fri, Nov 8, 10:36 PM
Unknown Object (File)
Fri, Nov 8, 1:31 PM
Unknown Object (File)
Fri, Nov 8, 12:23 PM
Unknown Object (File)
Fri, Nov 8, 12:23 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