Page MenuHomePhabricator

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

Authored by kamil on Aug 28 2024, 2:53 AM.
Tags
None
Referenced Files
F3379272: D13186.id43722.diff
Wed, Nov 27, 3:29 PM
F3378813: D13186.diff
Wed, Nov 27, 1:20 PM
Unknown Object (File)
Sat, Nov 23, 10:42 PM
Unknown Object (File)
Sat, Nov 23, 10:12 PM
Unknown Object (File)
Wed, Nov 6, 10:04 PM
Unknown Object (File)
Wed, Nov 6, 10:04 PM
Unknown Object (File)
Wed, Nov 6, 10:04 PM
Unknown Object (File)
Wed, Nov 6, 10:04 PM
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.Aug 28 2024, 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.Aug 28 2024, 5:34 AM