Page MenuHomePhabricator

[lib][web][native] Refactor actions in thread-actions.js pt.2
ClosedPublic

Authored by inka on Oct 5 2023, 9:44 AM.
Tags
None
Referenced Files
F3792842: D9371.id31686.diff
Tue, Jan 14, 6:27 AM
Unknown Object (File)
Sat, Jan 11, 9:57 PM
Unknown Object (File)
Fri, Jan 10, 6:00 AM
Unknown Object (File)
Sun, Jan 5, 8:03 PM
Unknown Object (File)
Thu, Dec 26, 9:49 PM
Unknown Object (File)
Thu, Dec 26, 6:58 PM
Unknown Object (File)
Thu, Dec 26, 6:58 PM
Unknown Object (File)
Thu, Dec 26, 6:58 PM

Details

Summary

issue: https://linear.app/comm/issue/ENG-4681/create-action-objects-for-all-actions

also removed accountPassword argument, that was deprecated by this stack: https://phab.comm.dev/D6103
Adding @marcin to review, since it was their stack

Test Plan

Tested that the actions work as expected

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka requested review of this revision.Oct 5 2023, 10:02 AM
This revision is now accepted and ready to land.Oct 6 2023, 4:26 AM
michal requested changes to this revision.Oct 11 2023, 1:38 AM
michal added inline comments.
keyserver/src/responders/thread-responders.js
69 ↗(On Diff #31686)

If I remember correctly this will stop accepting requests from older clients (because they will still send accountPassword). We should probably leave the validator as it is and change the ThreadDeletionRequest.accountPassword to (optional) empty so flow complains if you try and do anything with it.

lib/actions/thread-actions.js
44 ↗(On Diff #31686)

We shouldn't hide await inside of an another expression

This revision now requires changes to proceed.Oct 11 2023, 1:38 AM
This revision is now accepted and ready to land.Nov 3 2023, 5:19 AM