Page MenuHomePhabricator

[lib] Reduce removePeerUsersActionType in thread reducer
ClosedPublic

Authored by inka on Oct 17 2024, 4:11 AM.
Tags
None
Referenced Files
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
Unknown Object (File)
Wed, Nov 6, 5:08 AM
Unknown Object (File)
Wed, Oct 30, 1:17 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
No Lint Coverage
Unit
No Test Coverage

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

Can we handle this action here?

lib/tunnelbroker/use-peer-to-peer-message-handler.js
154

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

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