mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Update stores to use a constant accountId for PNIs.
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user