Update stores to use a constant accountId for PNIs.

This commit is contained in:
Greyson Parrelli
2024-02-08 12:53:22 -05:00
committed by GitHub
parent 65b26adb3d
commit 12385b9c5a
8 changed files with 101 additions and 23 deletions

View File

@@ -24,7 +24,7 @@ class BufferedSignedPreKeyStore(private val selfServiceId: ServiceId) : SignedPr
@kotlin.jvm.Throws(InvalidKeyIdException::class)
override fun loadSignedPreKey(id: Int): SignedPreKeyRecord {
return store.computeIfAbsent(id) {
SignalDatabase.signedPreKeys.get(selfServiceId, id) ?: throw InvalidKeyIdException("Missing one-time prekey with ID: $id")
SignalDatabase.signedPreKeys.get(selfServiceId, id) ?: throw InvalidKeyIdException("Missing signed prekey with ID: $id")
}
}