Page MenuHomePhabricator

[native] naively split EmojiAvatarCreation into EmojiUserAvatarCreation and EmojiThreadAvatarCreation
ClosedPublic

Authored by ginsu on Apr 18 2023, 1:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 10, 4:57 PM
Unknown Object (File)
Wed, Apr 24, 2:33 PM
Unknown Object (File)
Apr 14 2024, 6:28 PM
Unknown Object (File)
Apr 14 2024, 6:28 PM
Unknown Object (File)
Apr 14 2024, 6:28 PM
Unknown Object (File)
Apr 14 2024, 6:28 PM
Unknown Object (File)
Apr 14 2024, 6:28 PM
Unknown Object (File)
Apr 14 2024, 6:28 PM
Subscribers

Details

Summary

Copied the code in EmojiAvatarCreation and pasted it into both EmojiUserAvatarCreation and EmojiThreadAvatarCreation. Also updated the navigators and imports to use these two new components.

There is a bunch of shared code in EmojiUserAvatarCreation and EmojiThreadAvatarCreation, but the next diff will handle factoring out all the shared code back into EmojiAvatarCreation

Test Plan

Saving emoji avatar still works, no flow errors

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu added reviewers: ashoat, atul.
Harbormaster returned this revision to the author for changes because remote builds failed.Apr 18 2023, 1:24 PM
Harbormaster failed remote builds in B18478: Diff 25304!

remove nav props to appease flow/eslint

native/avatars/emoji-avatar-creation.react.js
43–49 ↗(On Diff #25311)

I know this is hacky, but this is needed to appease flow/eslint. I chose not to remove threadID and containingThreadID because

  1. It would require taking out a lot code to make things copacetic again and this diff would get super large
  2. At this point in the stack, this component is no longer used since we now call Emoji[User/Thread]AvatarCreation
  3. D7504 which is the next diff will resolve all this
ginsu requested review of this revision.Apr 18 2023, 1:55 PM

Please address inline comment before landing

native/chat/settings/emoji-thread-avatar-creation.react.js
46 ↗(On Diff #25311)

This should not be a ProfileNavigationProp anymore, right? Should it be a ChatNavigationProp?

This revision is now accepted and ready to land.Apr 19 2023, 5:47 AM
This revision was landed with ongoing or failed builds.Apr 19 2023, 12:46 PM
This revision was automatically updated to reflect the committed changes.