Page MenuHomePhabricator

[native] introduce naive thread avatar camera modal
AbandonedPublic

Authored by ginsu on Apr 19 2023, 8:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 27 2024, 2:36 AM
Unknown Object (File)
Oct 27 2024, 2:34 AM
Unknown Object (File)
Oct 13 2024, 9:39 AM
Unknown Object (File)
Oct 1 2024, 9:05 PM
Unknown Object (File)
Oct 1 2024, 8:59 PM
Unknown Object (File)
Sep 7 2024, 1:39 AM
Unknown Object (File)
Sep 1 2024, 3:04 AM
Unknown Object (File)
Aug 29 2024, 12:28 AM
Subscribers

Details

Reviewers
ashoat
atul
Summary

This diff handles introducing editing a thread avatar thorugh a phone camera. A ton of copy/paste here... will be working on cleaning all this up shortly

Depends on D7549

Test Plan

Built the app on my phone and could edit a thread avatar through my camera. Going back from the thread avatar camera modal also behaves as expected with the behavoir being that it navigates back to thread settings

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu published this revision for review.Apr 19 2023, 8:59 PM
ginsu added reviewers: ashoat, atul.
ginsu edited the summary of this revision. (Show Details)
ashoat requested changes to this revision.Apr 20 2023, 9:56 AM
ashoat added inline comments.
native/avatars/edit-thread-avatar.react.js
35

I don't think this works. You have two separate invocations of useSelectFromCameraAndUpdateThreadAvatar – one here, and one in ThreadAvatarCameraModal. Each of these invocations leads to distinct React state being created (processingOrUploadInProgress), and the two versions of this state are not synced

This revision now requires changes to proceed.Apr 20 2023, 9:56 AM

D7646 makes this diff obsolete