Page MenuHomePhabricator

[lib] Inline reduceLastCommunicatedPlatformDetails
ClosedPublic

Authored by inka on Nov 8 2023, 6:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 6, 12:17 AM
Unknown Object (File)
Thu, Jul 4, 2:47 AM
Unknown Object (File)
Sun, Jun 30, 10:31 PM
Unknown Object (File)
Sun, Jun 30, 1:50 AM
Unknown Object (File)
Sat, Jun 29, 5:50 AM
Unknown Object (File)
Fri, Jun 28, 2:00 PM
Unknown Object (File)
Thu, Jun 27, 10:06 PM
Unknown Object (File)
Mon, Jun 24, 4:42 AM

Details

Summary

issue: https://linear.app/comm/issue/ENG-5353/inline-reducelastcommunicatedplatformdetails
updateLastCommunicatedPlatformDetailsActionType is dispatched from socket and callServerEndpoint. In both of these we are in the context of one keyserver, so this action is keyserver specific

Test Plan

called updateLastCommunicatedPlatformDetailsActionType, checked that it sets the lastCommunicatedPlatformDetails correctly, chcecked that logInActionTypes sets it correctly.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka published this revision for review.Nov 8 2023, 8:13 AM
lib/reducers/keyserver-reducer.js
158 ↗(On Diff #33201)

Do these types match? Isn't one PlatformDetails and the other PlatformDetailsPayload?

lib/reducers/last-communicated-platform-details-reducer.js
20 ↗(On Diff #33201)

Is registerActionTypes.success handled somewhere?

lib/types/device-types.js
44–47 ↗(On Diff #33201)

This would be clearer imo (but it doesn't really matter)

inka added inline comments.
lib/reducers/keyserver-reducer.js
174–185 ↗(On Diff #33315)

In ENG-4440 we agreed to leave the register action as is, since it will be replaced and merged with login as part of ENG-4351
@varun is that still true? If so, is there a task that talks about the login / register actions more specifically?

This revision is now accepted and ready to land.Nov 16 2023, 5:04 AM