Page MenuHomePhabricator

[native] introduce naive thread avatar camera modal
AbandonedPublic

Authored by ginsu on Apr 19 2023, 8:58 PM.
Tags
None
Referenced Files
F2147915: D7550.id.diff
Sun, Jun 30, 3:18 AM
Unknown Object (File)
Sun, Jun 23, 2:10 PM
Unknown Object (File)
Fri, Jun 21, 1:52 PM
Unknown Object (File)
Tue, Jun 18, 7:18 AM
Unknown Object (File)
Tue, Jun 18, 7:18 AM
Unknown Object (File)
Tue, Jun 18, 7:14 AM
Unknown Object (File)
Thu, Jun 6, 11:08 PM
Unknown Object (File)
Thu, Jun 6, 9:57 PM
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