HomePhabricator
Diffusion Comm 10935364caf9

[native] update UserProfileBottomSheet to get a userInfo from a userID

Description

[native] update UserProfileBottomSheet to get a userInfo from a userID

Summary:
As a follow up to D9119 we can now update the userInfo in UserProfileBottomSheetParams to be a userID and use that to grab the userInfo using a selector. Another benefit of doing this is that this also makes navigating to UserProfileBottomSheet a lot more permissive since we only need to pass a userID (something similar to what we did with user avatars)

Depends on D9119

Test Plan:
Please see the demo video below where I can view the user profile from the thread settings (uses a RelativeMemberInfo) and RelationshipList (which uses AccountUserInfo)

Also tested the case when we can't find user with an id not found in our store by hardcoding null for userInfo

Reviewers: atul, inka

Reviewed By: atul

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D9120

Details

Provenance
ginsuAuthored on Sep 21 2023, 9:50 AM
Reviewer
atul
Differential Revision
D9120: [native] update UserProfileBottomSheet to get a userInfo from a userID
Parents
rCOMMa301a42f0654: [keyserver] Remove unused exports in message-fetchers.js
Branches
Unknown
Tags
Unknown