Page MenuHomePhabricator

[lib] Clear MessageStore on freshMessageStore
ClosedPublic

Authored by ashoat on Nov 16 2022, 8:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 22, 4:34 PM
Unknown Object (File)
Fri, Oct 18, 10:28 PM
Unknown Object (File)
Fri, Oct 18, 2:01 PM
Unknown Object (File)
Fri, Oct 18, 2:01 PM
Unknown Object (File)
Oct 6 2024, 8:26 AM
Unknown Object (File)
Oct 2 2024, 6:02 AM
Unknown Object (File)
Sep 18 2024, 6:57 AM
Unknown Object (File)
Sep 18 2024, 6:57 AM
Subscribers

Details

Summary

We don't seem to use remove_all on the messages side, but we do on the threads side. Was this an oversight?

Test Plan

Haven't tested yet, mostly just asking posing this as a question

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

It's been a while so I don't remember exactly... but I probably assumed that the SQLite messages table would be empty prior to logInActionTypes.success (which is the only action type in message-reducer.js for which freshMessageStore(...) is called).

Whether or not that assumption was correct, it doesn't hurt to add a remove_all op at the start for good measure.

This revision is now accepted and ready to land.Nov 17 2022, 8:47 AM