Page MenuHomePhabricator

[lib] Reduce removePeerUsersActionType in thread reducer
ClosedPublic

Authored by inka on Oct 17 2024, 4:11 AM.
Tags
None
Referenced Files
F3519733: D13740.id45294.diff
Sun, Dec 22, 10:45 PM
F3519732: D13740.id45287.diff
Sun, Dec 22, 10:45 PM
F3519726: D13740.id45244.diff
Sun, Dec 22, 10:45 PM
F3519704: D13740.id.diff
Sun, Dec 22, 10:45 PM
F3519595: D13740.diff
Sun, Dec 22, 10:43 PM
Unknown Object (File)
Tue, Dec 10, 8:13 AM
Unknown Object (File)
Sat, Nov 30, 4:19 PM
Unknown Object (File)
Tue, Nov 26, 11:07 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.Oct 21 2024, 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 (?)