Add whoami check for receipt_credentials.

This commit is contained in:
Alex Hart
2025-01-09 10:04:15 -04:00
committed by Greyson Parrelli
parent 0dbab7ede0
commit 23f90e070e
16 changed files with 300 additions and 69 deletions

View File

@@ -61,11 +61,11 @@ object MockProvider {
}
fun createWhoAmIResponse(aci: ServiceId, pni: ServiceId, e164: String): WhoAmIResponse {
return WhoAmIResponse().apply {
this.uuid = aci.toString()
this.pni = pni.toString()
this.number = e164
}
return WhoAmIResponse(
aci = aci.toString(),
pni = pni.toString(),
number = e164
)
}
fun createPreKeyResponse(identity: IdentityKeyPair = SignalStore.account.aciIdentityKey, deviceId: Int): PreKeyResponse {