Update server UserConfig document from client set profile picture/display name #291
Labels
Backend📡
Issues corresponding to the backend/API.
Feature
New feature or request
Frontend 🖥
Issues corresponding to the frontend/client.
Medium
You should have some familiarity with our codebase to work on this issue
For #254.
Summary
Currently, the user is able to set their profile picture (a numbered image, and color hex code), and their display name (string) through the Settings Screen.
We need to make sure that, once these settings change, a user's UserConfig document gets updated in Firebase through a fetch call to our backend web API. We also need a way to make similar calls that retrieve UserConfig information, so that profile pictures and display names (among other things) can be retrieved for every message. To do this we need to:
/server/src/routes
and the endpoints should be created in/server/src/routes/user
. Needed error checking code should also be implemented, following the style of the other files in this directory. Note that this Firebase document gets created in a call made in the frontend after the user signs up.After making these changes, create a PR and mention the Issue Number for this issue (so that it can close automatically after a merge).
Comment below to be assigned.
Dependent issues
Retrieve non-client profile picture/display name info when a message is received and render in chat screen
The text was updated successfully, but these errors were encountered: