We want the user to be able to see if they're connected, connection request pending, received a connection request, or complete strangers to a user. We should change the UserSerializer to return 0-3 in the is_connected field. This should map to a newly created array in Choices. Also, change the name to connection_status.
To implement, just make some database calls to check for the state of the connection.
We want the user to be able to see if they're connected, connection request pending, received a connection request, or complete strangers to a user. We should change the UserSerializer to return 0-3 in the is_connected field. This should map to a newly created array in Choices. Also, change the name to connection_status.
To implement, just make some database calls to check for the state of the connection.