Page MenuHomePhabricator

[lib] Return result of `mergeNewMessages(...) immediately for `fetchMessagesBeforeCursor.success`/`fetchMostReecentMessages.success` action types
ClosedPublic

Authored by atul on Jun 22 2022, 3:44 PM.
Tags
None
Referenced Files
F5893205: D4337.diff
Thu, Apr 17, 9:02 AM
Unknown Object (File)
Tue, Apr 8, 5:50 PM
Unknown Object (File)
Wed, Mar 26, 5:59 AM
Unknown Object (File)
Sun, Mar 23, 11:25 PM
Unknown Object (File)
Mar 7 2025, 1:02 PM
Unknown Object (File)
Feb 19 2025, 11:02 AM
Unknown Object (File)
Feb 16 2025, 2:34 PM
Unknown Object (File)
Feb 16 2025, 2:34 PM
Subscribers

Details

Summary

We were previously destructuring the return value of mergeNewMessages(...) and passing the destructured variables into eg assertMessageStoreMessagesAreEqual(...).

But, we're not doing that anymore so we can just return directly and cut a few lines.


Depends on D4336

Test Plan

flow, close reading

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul requested review of this revision.Jun 22 2022, 3:49 PM
This revision is now accepted and ready to land.Jun 23 2022, 4:51 AM

rebase after cherrypicking and before landing

This revision was landed with ongoing or failed builds.Jun 24 2022, 10:45 AM
This revision was automatically updated to reflect the committed changes.