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
Unknown Object (File)
Wed, May 1, 1:29 AM
Unknown Object (File)
Wed, May 1, 1:29 AM
Unknown Object (File)
Wed, May 1, 1:29 AM
Unknown Object (File)
Wed, May 1, 1:28 AM
Unknown Object (File)
Wed, May 1, 1:11 AM
Unknown Object (File)
Apr 16 2024, 2:03 AM
Unknown Object (File)
Mar 31 2024, 6:27 AM
Unknown Object (File)
Mar 30 2024, 4:08 AM
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.