Page MenuHomePhabricator

[lib] Create a hook that can delete thin and thick messages
ClosedPublic

Authored by tomek on Fri, Apr 4, 3:15 AM.
Tags
None
Referenced Files
F5775782: D14541.id47719.diff
Tue, Apr 15, 1:21 AM
F5771278: D14541.id47652.diff
Mon, Apr 14, 9:05 PM
F5766457: D14541.id47720.diff
Mon, Apr 14, 4:47 PM
F5751804: D14541.id.diff
Mon, Apr 14, 11:42 AM
Unknown Object (File)
Sun, Apr 13, 8:48 AM
Unknown Object (File)
Thu, Apr 10, 2:57 PM
Unknown Object (File)
Thu, Apr 10, 10:46 AM
Unknown Object (File)
Wed, Apr 9, 3:48 PM
Subscribers
None

Details

Summary

Depending on the protocol, create a DM or send a request to a keyserver.

https://linear.app/comm/issue/ENG-10342/add-client-code-to-call-the-keyserver-endpoint

Depends on D14540

Test Plan

Tested later in the stack by checking if it is possible to delete a message both in thin and thick threads.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Fri, Apr 4, 3:33 AM
ashoat added inline comments.
lib/utils/delete-message-utils.js
65–67 ↗(On Diff #47652)

Curious why this wrapping is needed

This revision is now accepted and ready to land.Fri, Apr 4, 8:45 AM

Simplify the code

lib/utils/delete-message-utils.js
65–67 ↗(On Diff #47652)

Good question! It isn't needed - simplified the code.

Await the promise to make this symmetric with the thick thread's code