Page MenuHomePhabricator

[lib] change the Send Reaction Message Success Payload and also change its reducer success case
ClosedPublic

Authored by ginsu on Jan 3 2023, 12:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jul 1, 9:22 AM
Unknown Object (File)
Mon, Jul 1, 9:22 AM
Unknown Object (File)
Mon, Jul 1, 9:22 AM
Unknown Object (File)
Mon, Jul 1, 9:12 AM
Unknown Object (File)
Tue, Jun 25, 4:13 PM
Unknown Object (File)
Tue, Jun 25, 1:05 PM
Unknown Object (File)
Mon, Jun 24, 5:17 AM
Unknown Object (File)
Sun, Jun 23, 6:26 AM
Subscribers

Details

Summary

change the Send Reaction Message Success Payload and also change its reducer success case. The big change here is that we no longer want to use the same success case as restoreEntryActionTypes, changeThreadSettingsActionTypes, etc. With localID we can use the same success case as sendTextMessageActionTypes and sendMultimediaMessageActionTypes since we are grabbing the message info from the local message.

Also got rid of SendReactionMessagePayload since we are just using SendMessagePayload for reaction messages


Depends on D6151
Linear Task: ENG-2599

Test Plan

Please watch the demo videos to see how the redux state changes when a reaction message is successful:

Native:

Web:

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu requested review of this revision.Jan 3 2023, 12:45 PM
ginsu retitled this revision from [lib] change the Send Reaction Message Success Payload and also change its reducer case to [lib] change the Send Reaction Message Success Payload and also change its reducer success case.Jan 3 2023, 12:50 PM
ginsu edited the summary of this revision. (Show Details)
ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: atul, tomek.
This revision is now accepted and ready to land.Jan 5 2023, 8:14 AM