Pull out common functionality from Edit[User/Thread]Avatar and move to newly introduced avatar-hooks.js.
Details
Details
- Replace onPressEmojiAvatarFlow with openPhotoGallery in Edit[User/Thread]Avatar
- Ensure that selected image appears in keyserver uploads table as before.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- master
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
native/avatars/avatar-hooks.js | ||
---|---|---|
11 | Placing this in native/avatars/avatar-hooks for now because openPhotoGallery has some native-specific code. It is true that useUploadProcessedMedia and useProcessSelectedMedia (next diff) could also be useful for web and so it might make sense for them to live in lib... but I think we can defer that for later. Right now it's convenient to have them all in one file, and because of openPhotoGallery it makes sense for that one file to be within native. |
native/avatars/avatar-hooks.js | ||
---|---|---|
11 | Makes sense |