Page MenuHomePhabricator

Refactor getAllMessages{Sync}. Bring db messages parsing to separate function
ClosedPublic

Authored by marcin on Nov 30 2022, 10:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 22 2024, 6:45 AM
Unknown Object (File)
Nov 22 2024, 6:45 AM
Unknown Object (File)
Nov 22 2024, 6:45 AM
Unknown Object (File)
Nov 22 2024, 6:45 AM
Unknown Object (File)
Nov 22 2024, 6:39 AM
Unknown Object (File)
Nov 19 2024, 7:14 AM
Unknown Object (File)
Nov 19 2024, 12:15 AM
Unknown Object (File)
Nov 19 2024, 12:09 AM
Subscribers

Details

Summary

This differential brings db messages persing into separate function. This removes duplicated logic and allowes to perform exclusively db messages parsing when we implement JSI method to get all SQLite data.

Test Plan

Launhc the app, open chat with a certaion user so that messages are fetched from server. Kill the app, launch the app and flipper. Ensure messages are in the payload of SET_CLIENT_DB_STORE action.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Nov 30 2022, 10:48 AM
Harbormaster failed remote builds in B13886: Diff 19019!

Great! I'm glad to see that copy-pasted code gets refactored!

This revision is now accepted and ready to land.Dec 1 2022, 5:59 AM