Page MenuHomePhabricator

[lib] Clear MessageStore on freshMessageStore
ClosedPublic

Authored by ashoat on Nov 16 2022, 8:19 PM.
Tags
None
Referenced Files
F2905839: D5659.diff
Sun, Oct 6, 8:26 AM
Unknown Object (File)
Wed, Oct 2, 6:02 AM
Unknown Object (File)
Wed, Sep 18, 6:57 AM
Unknown Object (File)
Wed, Sep 18, 6:57 AM
Unknown Object (File)
Wed, Sep 18, 6:54 AM
Unknown Object (File)
Wed, Sep 18, 6:29 AM
Unknown Object (File)
Sep 4 2024, 9:14 AM
Unknown Object (File)
Sep 1 2024, 7:55 PM
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
Branch
ashoat/messagereducer
Lint
No Lint Coverage
Unit
No Test Coverage

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