Page MenuHomePhabricator

[lib][native] update `useEditMessage` return type
ClosedPublic

Authored by kamil on Wed, Aug 28, 2:53 AM.
Tags
None
Referenced Files
F2789180: D13186.id43760.diff
Sat, Sep 21, 10:16 AM
F2789066: D13186.id43744.diff
Sat, Sep 21, 10:01 AM
F2788905: D13186.id43722.diff
Sat, Sep 21, 8:25 AM
F2788790: D13186.diff
Sat, Sep 21, 7:13 AM
Unknown Object (File)
Fri, Sep 20, 3:03 AM
Unknown Object (File)
Wed, Sep 18, 3:12 PM
Unknown Object (File)
Mon, Sep 16, 7:29 PM
Unknown Object (File)
Mon, Sep 16, 1:48 AM
Subscribers

Details

Summary

ENG-8976;

SendEditMessageResult is used only in dispatchActionPromise, other than that we only care about success/failure.

With that change, we're able to use this hook also for DMs where SendEditMessageResult is not existing.

Test Plan

Editing still works

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Wed, Aug 28, 3:59 AM
tomek added inline comments.
lib/shared/edit-messages-utils.js
28–48 ↗(On Diff #43722)

We can simplify the syntax

This revision is now accepted and ready to land.Wed, Aug 28, 5:34 AM