Page MenuHomePhabricator

[lib] Update `messageStore.messages` with `msgStoreOps` for updateMultimediaMessageMedia
ClosedPublic

Authored by atul on Jun 2 2022, 8:19 PM.
Tags
None
Referenced Files
F3491314: D4205.id13652.diff
Wed, Dec 18, 6:50 PM
F3490306: D4205.diff
Wed, Dec 18, 3:47 PM
Unknown Object (File)
Tue, Nov 26, 5:14 AM
Unknown Object (File)
Nov 9 2024, 11:41 AM
Unknown Object (File)
Nov 9 2024, 11:41 AM
Unknown Object (File)
Nov 9 2024, 11:41 AM
Unknown Object (File)
Nov 8 2024, 8:08 AM
Unknown Object (File)
Nov 5 2024, 2:02 AM

Details

Summary

Instead of using messageStore.messages from the previous updatedMessageStore object, we pull messageStore.messages from processedMessageStore.messages instead.


Depends on D4204

Test Plan

This should be a straightforward refactor given we've had assertMessageStoreMessagesAreEqual in place for some time now.

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul requested review of this revision.Jun 2 2022, 8:26 PM
tomek requested changes to this revision.Jun 3 2022, 4:33 AM
tomek added inline comments.
lib/reducers/message-reducer.js
1331–1334
This revision now requires changes to proceed.Jun 3 2022, 4:33 AM
atul requested review of this revision.Jun 17 2022, 1:33 PM
atul added inline comments.
lib/reducers/message-reducer.js
1331–1334

Right now the "ops-approach" only modifies messageStore.messages, we'll need to "get the rest" of the messageStore using the old way

tomek added inline comments.
lib/reducers/message-reducer.js
1331–1334

It would be more maintainable if we passed a message store with all the changes to processMessageStoreOperations and directly use the result in return value.

This revision is now accepted and ready to land.Jun 20 2022, 3:12 AM

It would be more maintainable if we passed a message store with all the changes to processMessageStoreOperations and directly use the result in return value.

That's the goal but it'll be sequenced later in this stack: https://phab.comm.dev/D4201#121744

rebase after cherrypicking and before addressing feedback