Page MenuHomePhabricator

[lib] Reduce removePeerUsersActionType in thread reducer
ClosedPublic

Authored by inka on Oct 17 2024, 4:11 AM.
Tags
None
Referenced Files
F3300771: D13740.id45244.diff
Sun, Nov 17, 9:46 PM
F3300569: D13740.diff
Sun, Nov 17, 7:47 PM
F3298257: D13740.id45287.diff
Sun, Nov 17, 5:26 AM
F3295809: D13740.diff
Sat, Nov 16, 11:28 PM
Unknown Object (File)
Fri, Nov 8, 3:05 AM
Unknown Object (File)
Thu, Nov 7, 10:02 PM
Unknown Object (File)
Thu, Nov 7, 2:40 PM
Unknown Object (File)
Thu, Nov 7, 12:55 PM
Subscribers

Details

Summary

issue: ENG-9634
In the thread reducer we want to use generateOpsAndProcessThreadUpdates which reduces delete account updates. In the future removePeerUsersActionType will be fully replaced by an update sent with processDMOpsActionType action. But this is tracked in ENG-4905

Test Plan

Tested by dispatching removePeerUsersActionType action. Tested that the user gets deleted: they get removed from threads, user store and aux user store.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka requested review of this revision.Oct 17 2024, 4:29 AM
tomek added inline comments.
lib/reducers/thread-reducer.js
266–267 ↗(On Diff #45244)

Can we handle this action here?

lib/tunnelbroker/use-peer-to-peer-message-handler.js
154 ↗(On Diff #45244)

I guess it's fine as is, but does the message contain a timestamp that we can use here?

This revision is now accepted and ready to land.Mon, Oct 21, 3:23 AM

Update payload type

lib/tunnelbroker/use-peer-to-peer-message-handler.js
154 ↗(On Diff #45244)

It doesn't really seem to have a timestamp (?)