Page MenuHomePhabricator

[lib] Introduce newThread helper to message-reducer.js
ClosedPublic

Authored by ashoat on Nov 18 2022, 6:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 3:38 AM
Unknown Object (File)
Wed, Apr 17, 3:38 AM
Unknown Object (File)
Wed, Apr 17, 3:37 AM
Unknown Object (File)
Wed, Apr 17, 3:34 AM
Unknown Object (File)
Fri, Apr 5, 3:09 AM
Unknown Object (File)
Mar 25 2024, 8:41 PM
Unknown Object (File)
Mar 14 2024, 3:17 AM
Unknown Object (File)
Feb 28 2024, 6:15 PM
Subscribers
None

Details

Summary

This should be a no-op. The only change is that we will have slightly different pruning times, but that should not be significant.

Test Plan

Flow, and also the other testing I've done for the stack

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul added inline comments.
lib/reducers/message-reducer.js
133 ↗(On Diff #18568)

Ah so the reason we're defining a function instead of an object that we "spread" later is because Date.now() is "dynamic"

This revision is now accepted and ready to land.Nov 21 2022, 10:31 AM
lib/reducers/message-reducer.js
133 ↗(On Diff #18568)

Yes