HomePhabricator
Diffusion Comm deb559ef04b0

[keyserver/lib] fetch avatar column from users table in fetchCurrentUserInfo

Description

[keyserver/lib] fetch avatar column from users table in fetchCurrentUserInfo

Summary:
The current user will need the avatar info from the db. Updated the query to include avatar in the returned object whenever avatar is not null. A subsequent diff will address the other queries.

This diff won't be landed until there is a feature flag for the avatars work


Linear Task: https://linear.app/comm/issue/ENG-3209/update-user-fetchers-to-return-avatar-info-from-users-table

Test Plan:
I logged out currentUserInfo in profile-screen.react

When avatar is null:

Screenshot 2023-03-14 at 11.08.57 AM.png (130×694 px, 67 KB)

When avatar is populated (hardcoded an avatar variable on the keyserver just for the logs)

Screenshot 2023-03-14 at 11.12.09 AM.png (136×1 px, 104 KB)

Reviewers: ashoat, atul

Reviewed By: ashoat, atul

Subscribers: ashoat, tomek, atul

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

Details

Provenance
ginsuAuthored on Mar 21 2023, 8:35 AM
Reviewer
ashoat
Differential Revision
D7054: [keyserver/lib] fetch avatar column from users table in fetchCurrentUserInfo
Parents
rCOMMb5df71ba24a0: [lib] introduce getAvatarForUser in avatar-utils
Branches
Unknown
Tags
Unknown