mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-01 22:25:46 +01:00
Fleshed out session management in registration v2.
This commit is contained in:
@@ -30,6 +30,15 @@ class RegistrationApi(
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve current status of a registration session.
|
||||
*/
|
||||
fun getRegistrationSessionStatus(sessionId: String): NetworkResult<RegistrationSessionMetadataResponse> {
|
||||
return NetworkResult.fromFetch {
|
||||
pushServiceSocket.getSessionStatus(sessionId)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Submit an FCM token to the service as proof that this is an honest user attempting to register.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user