Team-uMigrate / umigrate

Source code for the uMigrate project
13 stars 2 forks source link

API: Implement connection status #357

Closed Terence-Wong closed 3 years ago

Terence-Wong commented 3 years ago

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.