Page MenuHomePhabricator

[lib] Added method to call edit_message endpoint
ClosedPublic

Authored by kuba on Mar 22 2023, 5:45 AM.
Tags
None
Referenced Files
F3523080: D7139.diff
Mon, Dec 23, 8:20 AM
Unknown Object (File)
Mon, Dec 9, 9:46 PM
Unknown Object (File)
Sat, Dec 7, 11:38 PM
Unknown Object (File)
Sat, Dec 7, 11:38 PM
Unknown Object (File)
Sat, Dec 7, 11:38 PM
Unknown Object (File)
Sat, Dec 7, 11:38 PM
Unknown Object (File)
Nov 10 2024, 10:43 PM
Unknown Object (File)
Nov 10 2024, 4:30 PM
Subscribers

Details

Summary

Added a new method to call edit_message endpoint to send edited messages to the keyserver.

Test Plan

Checked if the app still works. Other tests are in later diffs.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ashoat requested changes to this revision.Mar 22 2023, 3:02 PM
ashoat added inline comments.
lib/actions/message-actions.js
255–257 ↗(On Diff #23986)

Why are you doing all of this with getResultInfo? What does it achieve?

In the future, please explain strange things like this by annotating the diff before sending it for review. You should expect that your reviewer will always request changes when they see unexpected stuff like this, and it will significantly reduce diff churn if you take the time to review your own diff / explain this sort of thing

This revision now requires changes to proceed.Mar 22 2023, 3:02 PM
kuba marked an inline comment as done.

Removed redundant code

ashoat added inline comments.
lib/types/message-types.js
575–576

Not sure we need all of these type aliases, I would just use SendEditMessageResponse directly (this is the pattern we have in the codebase today)

This revision is now accepted and ready to land.Mar 28 2023, 5:39 AM