mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-26 20:55:10 +00:00
Update link device provisioning proto.
This commit is contained in:
committed by
Michelle Tang
parent
5a1bb0c231
commit
2da3ac5b20
@@ -117,6 +117,14 @@ object LinkDeviceRepository {
|
||||
return false
|
||||
}
|
||||
|
||||
if (uri.scheme != "sgnl") {
|
||||
return false
|
||||
}
|
||||
|
||||
if (uri.host != "linkdevice") {
|
||||
return false
|
||||
}
|
||||
|
||||
val ephemeralId: String? = uri.getQueryParameter("uuid")
|
||||
val publicKeyEncoded: String? = uri.getQueryParameter("pub_key")
|
||||
return ephemeralId.isNotNullOrBlank() && publicKeyEncoded.isNotNullOrBlank()
|
||||
|
||||
Reference in New Issue
Block a user