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
F3388296: D9371.id31686.diff
Fri, Nov 29, 1:36 PM
Unknown Object (File)
Thu, Nov 28, 3:36 AM
Unknown Object (File)
Tue, Nov 26, 2:18 PM
Unknown Object (File)
Sat, Nov 23, 10:35 PM
Unknown Object (File)
Wed, Nov 20, 5:38 PM
Unknown Object (File)
Wed, Nov 20, 2:58 PM
Unknown Object (File)
Sun, Nov 17, 6:41 AM
Unknown Object (File)
Fri, Nov 15, 2:30 AM

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
Branch
inka/actions_new_branch
Lint
No Lint Coverage
Unit
No Test Coverage

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

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

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